Systems and methods for fragmenting newsfeed objects

ABSTRACT

A technique allows a newsfeed item shown in a newsfeed of a social network to be easily promoted to another newsfeed in the social network. In a specific embodiment, the system receives a first user&#39;s promotion selection of an item displayed in a newsfeed of the first user. The item includes content provided by a second user. The first user is prompted to select a destination newsfeed. A selection of the destination newsfeed is received and the item is published on the destination newsfeed for a third user.

CLAIM OF PRIORITY

This application claims the benefit of U.S. Provisional PatentApplication 61/511,773 entitled SYSTEMS AND METHODS FOR FRAGMENTINGNEWSFEED OBJECTS, by Joseph M. Olsen, Zachary J. Dunn, and Teddy K. Joe,filed Jul. 26, 2011, the entire contents of which are incorporatedherein by reference.

COPYRIGHT NOTICE

A portion of the disclosure of this patent document contains materialwhich is subject to copyright protection. The copyright owner has noobjection to the facsimile reproduction by anyone of the patent documentor the patent disclosure, as it appears in the Patent and TrademarkOffice patent file or records, but otherwise reserves all copyrightrights whatsoever.

FIELD OF THE INVENTION

One or more implementations relate generally to computer systems andsoftware, and, more particularly, to fragmenting a newsfeed in anon-demand services environment.

BACKGROUND

The subject matter discussed in the background section should not beassumed to be prior art merely as a result of its mention in thebackground section. Similarly, a problem mentioned in the backgroundsection or associated with the subject matter of the background sectionshould not be assumed to have been previously recognized in the priorart. The subject matter in the background section merely representsdifferent approaches, which in and of themselves may also be inventions.

Business is about getting the best ideas from everyone in theorganization. Indeed, success in business often means making sure theright information quickly and efficiently gets to the right people andmaking sure risks are identified early and escalated as needed.Traditional means of communicating new ideas and discoveries tostakeholders, and apprising stakeholders of potential risk and exposureare ill-suited for today's fast moving business environment. Forexample, by the time management reads that memo for a new product idea,a competitor may have already brought that idea to market.

Therefore, there is a need for improved systems and techniques forcommunicating and sharing information within an enterprise.

BRIEF SUMMARY

In an embodiment, a method for fragmenting a newsfeed in an enterprisesocial network includes receiving from a first user within theenterprise social network a request, the request including a selectionof an item displayed in the newsfeed of the first user, where the itemincludes content provided by a second user within the enterprise socialnetwork, prompting the first user to select a destination newsfeed forthe item, receiving a selection of the destination newsfeed from thefirst user, and publishing the selected item on the selected destinationnewsfeed for a third user within the enterprise social network. Withinthe enterprise social network, the first user may be following thesecond user, and the third user may not be following the second user.

The method may further include receiving a setting for a permissionoption from the first user for the selected item, and upon publishingthe selected item on the selected destination newsfeed, based on thesetting, not notifying the second user that the selected item has beenpublished on the selected destination newsfeed. Alternatively, themethod may further include upon publishing the selected item on theselected destination newsfeed, based on the setting, notifying thesecond user that the selected item has been published on the selecteddestination newsfeed.

In another specific embodiment, the method includes maintaining on thenewsfeed a threaded discussion including an initial post and the item,where the item includes a comment made in response to the initial post.

In another specific embodiment, the method includes receiving from thefirst user an identification of at least one user of the enterprisesocial network who should be permitted to view comments that are made inresponse to the selected item published on the selected destinationnewsfeed.

The method may further include blocking the second user from viewingcomments that are made in response to the selected item published on theselected destination newsfeed because the selected destination newsfeedis for a group of the enterprise social network that the second user isnot a member of.

In another specific embodiment, the method includes after the publishingthe selected item on the selected destination newsfeed, determining thata number of times that the selected item can be reposted has reached athreshold value, and blocking the selected item from being published onanother destination newsfeed based on the determination.

In another specific embodiment, the item is a first item published onthe newsfeed of the first user, and the method includes publishing asecond item on the newsfeed of the first user, the second item includingcontent from another user of the enterprise social network, receiving anindication from the other user that the second item should not bereposted, and preventing the second item from being published on anotherdestination newsfeed based on the indication.

The selected item may include a first comment and a second comment, andthe publishing the selected item on the selected destination newsfeedmay include publishing the first and second comments on the selecteddestination newsfeed.

In another specific embodiment, the method further includes seeking fromthe first user a reason for the item having been selected, storing thereason, and publishing the reason on the selected destination newsfeed.

In a specific implementation, a social network incorporates a “newsfeed”for each user, in which a first user can post or publish text describinghis or her status, files, or may address or call attention to a seconduser on the social network, e.g., through the use of “at mentions”(“@mentions”). In addition, if the first user and the second user are“connected” and/or are “following” each other, then the first user canpost to the second user's newsfeed, also known as “posting to the seconduser's wall.” A third user who is following both the first and seconduser will be able to view ongoing online “conversations” between thefirst and second user, and may even have those conversations echoed onhis or her respective newsfeed.

If those conversations include files or other objects, then the thirduser may be able to access and view those posted objects as well.Chatter® is an example of a social network, and is offered bysalesforce.com, inc. While Chatter is referenced in this disclosure, aperson having ordinary skill in the art will appreciate that othersocial networks may incorporate the features described herein.

An online social network is a digitized representation of humaninteraction made public for a wider audience. Whereas the audience for aconventional conversation between two people may be limited to those inclose audible proximity between those two people, a conversation thattakes place on an online social network is not bound by such physicalconstraints. Any other person or user who is interested in following anonline conversation may do so.

However, while an online conversation may be virtually unlimited as tothe audience, the audience may be limited by the user interface (“UI”)of the online social network. The typical UI for a social networknewsfeed is linear, organized chronologically or by some algorithmimposed by the social network's designer, e.g., organized by “hottesttopics” or “most important news.” That representation may be unrealisticand too limiting, given the potential size of the audience.

For example, if a member of a virtual audience (which may comprise oneor more other users) following a conversation between a first and asecond user wishes to interject into the conversation, that member mustcomment or post to that conversation. If the member does not want theoriginal conversants, i.e., the first and second users, to see thecomment, there is typically no way to configure such selective viewing.If the member wants to interject into a conversation that took place inthe past, it becomes inconvenient, since the first and second users mayno longer be interested in the topic that gives rise to the member'sinterjection. It would therefore be desirable to provide a way tobranch, or “fragment,” a conversation from an online social network. Inorder provide additional information on how a conversation develops on asocial network, it would also be desirable to track when and how often aconversation is fragmented.

An embodiment of this disclosure is directed to a process forfragmenting an online conversation. A third user following an onlineconversation on a first newsfeed between a first and second user, may beable to re-post text, a file, or other object from the first newsfeed,thereby furthering the conversation in a second newsfeed separate fromthe first newsfeed. In an embodiment, the third user can permit thefirst and/or second user to access the second newsfeed, or the thirduser can limit access to the second newsfeed by either the first user,the second user, or both the first and the second users.

In an embodiment, an object can be re-posted from a first newsfeed to asecond newsfeed without requiring a “conversation” between a two users.In other words, a second user can re-post a newsfeed object originallyposted by a first user. In an embodiment, the second user can configurewhether the first user has access to the re-posted object, either byspecifically identifying which users can access the re-posted object, byre-posting the object to a group that the first user is or is not amember of, or the like.

In a non-limiting example of an embodiment, Lucinda is a complianceofficer at a company that utilizes the Chatter online social network. Aspart of her job, Lucinda follows the online conversations of a number ofemployees at her company, including Arturo, who works in advertising.Arturo posts a presentation on a future product, which Lucinda notices.Lucinda is unsure whether the presentation has passed through theappropriate approval process, so Lucinda re-posts the presentation tothe newsfeed for a private group that Arturo is not a member of.

In this fashion, Lucinda and other members of the private group canreview the presentation and alert Arturo of any issues, without Arturoor Arturo's followers knowing that the presentation was flagged.Alternatively or additionally, Lucinda can re-post the presentation tothe newsfeed of her colleague, Xavier, who is also part of thecompliance team. If Arturo follows either Lucinda or Xavier, he will beable to see that his presentation was re-posted, can follow thesubsequent conversation, and can interject accordingly.

In another non-limiting example, Gunther manages a number of accountrepresentatives at a company that utilizes Chatter. Gunther follows anumber of people on Chatter so that he can provide information that hethinks will help his team succeed. Gunther notices an onlineconversation between two account representatives from another team, inwhich they discuss some key selling points that enabled them to win anew account. Gunther can re-post a portion of that online conversationto his own newsfeed, and can alert one or more members of his team byusing @mentions or the like. Mentioning a person is a way to keep theminformed and updated when there is something that may be relevant tothem. The person may receive an e-mail notification regarding theupdate, the update may appear on the person's profile feed, or both.

A person having ordinary skill in the art will appreciate that there maybe many ways to implement embodiments of this disclosure, and that thisdisclosure is not limited to any one implementation. For example, in anembodiment, re-posting may copy the posted object, such that a secondcopy of the object exists in a memory accessible by the social network.In an embodiment, there may only be a single instance of the postedobject, and re-posting merely creates a link to that instance. An objectmay be limited to a single tenant in a multitenant database systemhosting the social network, or the object may be accessible by one ormore tenants in the multitenant database system.

Various UI controls can enable the re-posting feature as well asaccessibility controls. In an embodiment, each post on a newsfeed in anonline social network can provide options to re-post a posted object,either with a button, mouse over item, menu item, or the like. In anembodiment, when an object is selected for re-posting, there may beoptions to identify one or more other users that can access the objectafter it is re-posted. In an embodiment, a user posting an object canlimit the extent an object can be re-posted by identifying which user orusers can re-post the object, or can prohibit re-posting completely, orcan limit the number of times an object is re-posted. In an embodiment,if an object is re-posted, the user who originally posted the object canidentify how many times the object was re-posted, and/or who re-postedthe object, i.e., tracking the “vitality” of a posted object. Othervariations of the embodiments disclosed herein are possible withoutdeparting from the scope of this disclosure.

In a specific implementation, a method includes posting, by a seconduser of an online social network hosted by a multitenant data system, anobject to a second newsfeed in the online social network, the objectpreviously posted by a first user to a first newsfeed in the onlinesocial network.

While one or more implementations and techniques are described withreference to an embodiment in which fragmenting a newsfeed isimplemented in a system having an application server providing a frontend for an on-demand database service capable of supporting multipletenants, the one or more implementations and techniques are not limitedto multi-tenant databases nor deployment on application servers.Embodiments may be practiced using other database architectures, i.e.,ORACLE®, DB2® by IBM and the like without departing from the scope ofthe embodiments claimed.

Any of the above embodiments may be used alone or together with oneanother in any combination. The one or more implementations encompassedwithin this specification may also include embodiments that are onlypartially mentioned or alluded to or are not mentioned or alluded to atall in this brief summary or in the abstract. Although variousembodiments may have been motivated by various deficiencies with theprior art, which may be discussed or alluded to in one or more places inthe specification, the embodiments do not necessarily address any ofthese deficiencies. In other words, different embodiments may addressdifferent deficiencies that may be discussed in the specification. Someembodiments may only partially address some deficiencies or just onedeficiency that may be discussed in the specification, and someembodiments may not address any of these deficiencies.

BRIEF DESCRIPTION OF THE DRAWINGS

In the following drawings like reference numbers are used to refer tolike elements. Although the following figures depict various examples,the one or more implementations are not limited to the examples depictedin the figures.

FIG. 1A shows a block diagram of an example of an environment 10 inwhich an on-demand database service can be used in accordance with someimplementations.

FIG. 1B shows a block diagram of an example of some implementations ofelements of FIG. 1A and various possible interconnections between theseelements.

FIG. 2A shows a system diagram illustrating an example of architecturalcomponents of an on-demand service environment 200 according to someimplementations.

FIG. 2B shows a system diagram further illustrating an example ofarchitectural components of an on-demand service environment accordingto some implementations.

FIG. 3 shows a flowchart of an example of a method 300 for trackingupdates to a record stored in a database system, performed in accordancewith some implementations.

FIG. 4 shows a block diagram of an example of components of a databasesystem configuration 400 performing a method for tracking an update to arecord according to some implementations.

FIG. 5 shows a flowchart of an example of a method 500 for trackingactions of a user of a database system, performed in accordance withsome implementations.

FIG. 6 shows a flowchart of an example of a method 600 for creating anews feed from messages created by a user about a record or anotheruser, performed in accordance with some implementations.

FIG. 7 shows an example of a group feed on a group page according tosome implementations.

FIG. 8 shows an example of a record feed containing a feed trackedupdate, post, and comments according to some implementations.

FIG. 9A shows an example of a plurality of tables that may be used intracking events and creating feeds according to some implementations.

FIG. 9B shows a flowchart of an example of a method 900 forautomatically subscribing a user to an object in a database system,performed in accordance with some implementations.

FIG. 10 shows a flowchart of an example of a method 1000 for savinginformation to feed tracking tables, performed in accordance with someimplementations.

FIG. 11 shows a flowchart of an example of a method 1100 for reading afeed item as part of generating a feed for display, performed inaccordance with some implementations.

FIG. 12 shows a flowchart of an example of a method 1200 for reading afeed item of a profile feed for display, performed in accordance withsome implementations.

FIG. 13 shows a flowchart of an example of a method 1300 of storingevent information for efficient generation of feed items to display in afeed, performed in accordance with some implementations.

FIG. 14 shows a flowchart of an example of a method 1400 for creating acustom feed for users of a database system using filtering criteria,performed in accordance with some implementations.

FIG. 15 shows a block diagram of an example of system components forfragmenting a newsfeed by promoting an item of the newsfeed according tosome implementations.

FIG. 16 shows a flowchart of an example of a method 1605 for promotingan item on a newsfeed according to some implementations.

FIG. 17 shows an example of a Web page having a newsfeed with an item tobe promoted according to some implementations.

FIG. 18 shows an example of a Web page for selecting a destinationnewsfeed for the item to be promoted according to some implementations.

FIG. 19 shows an example of a Web page having the promoted itemaccording to some implementations.

FIG. 20 shows a flowchart example of a method 2005 for seeking a reasonfor promotion of the item according to some implementations.

FIG. 21 shows an example of a Web page for inputting the reason for theitem promotion according to some implementations.

FIG. 22 shows an example of a Web page having the promoted item and thereason for the promotion on the destination newsfeed according to someimplementations.

FIG. 23 shows a flowchart example of a method 2305 for applyingpermission settings to the item to be promoted according to someimplementations.

FIG. 24 shows an example of a Web page for selecting the permissions toapply to the item to be promoted according to some implementations.

FIG. 25 shows a flowchart example of a method 2505 for applyingrestrictions to limit promotion of an item according to someimplementations.

FIG. 26 shows an example of a Web page for applying the restrictions tolimit promotion of an item according to some implementations.

FIG. 27 shows an example of a Web page where promotion of an item isavailable for second-level or nested items of a newsfeed, but is notavailable for top-level items of the newsfeed according to someimplementations.

DETAILED DESCRIPTION

Systems and methods are provided for fragmenting a newsfeed by promotingan item in the newsfeed to another newsfeed. Examples of systems,apparatus, and methods according to the disclosed implementations aredescribed in this section. These examples are being provided solely toadd context and aid in the understanding of the disclosedimplementations. It will thus be apparent to one skilled in the art thatimplementations may be practiced without some or all of these specificdetails. In other instances, certain process/method operations, alsoreferred to herein as “blocks,” have not been described in detail inorder to avoid unnecessarily obscuring implementations. Otherapplications are possible, such that the following examples should notbe taken as definitive or limiting either in scope or setting.

In the following detailed description, references are made to theaccompanying drawings, which form a part of the description and in whichare shown, by way of illustration, specific implementations. Althoughthese implementations are described in sufficient detail to enable oneskilled in the art to practice the disclosed implementations, it isunderstood that these examples are not limiting, such that otherimplementations may be used and changes may be made without departingfrom their spirit and scope. For example, the blocks of methods shownand described herein are not necessarily performed in the orderindicated. It should also be understood that the methods may includemore or fewer blocks than are indicated. In some implementations, blocksdescribed herein as separate blocks may be combined. Conversely, whatmay be described herein as a single block may be implemented in multipleblocks.

Various implementations described or referenced herein are directed todifferent methods, apparatus, systems, and computer program products forfragmenting an information feed showing feed items on a display devicein an online social network, also referred to herein as a socialnetworking system or an enterprise social network. The feed items in theinformation feed may include information updates stored in an on-demanddatabase service environment. In some implementations, the disclosedmethods, apparatus, systems, and computer program products may beconfigured or designed for use in a multi-tenant database environment.

In some implementations, an online social network may allow a user tofollow data objects in the form of records such as cases, accounts, oropportunities, in addition to following individual users and groups ofusers. One example of such an online social network is Chatter®,provided by salesforce.com of San Francisco, Calif. Such online socialnetworks can be implemented in various settings, including enterprisessuch as business organizations or groups within such an organization.For instance, Chatter® can be used by employee users of a businessorganization to communicate and collaborate with each other for variouspurposes.

The “following” of a record stored in a database, as described ingreater detail below, allows a user to track the progress of thatrecord. Updates to the record, also referred to herein as changes to therecord, can occur and be noted on an information feed such as the recordfeed or the news feed of a user subscribed to the record. With thedisclosed implementations, such record updates are often presented as anitem or entry in the feed. Such a feed item can include a single updateor a collection of individual updates. Information updates presented asfeed items in an information feed can include updates to a record, aswell as other types of updates such as user actions and events, asdescribed herein.

Examples of record updates include field changes in the record, as wellas the creation of the record itself. Examples of other types ofinformation updates, which may or may not be linked with a particularrecord depending on the specific use of the information update, includemessages as described herein. Examples of such messages include postssuch as explicit text or characters submitted by a user, multimedia datasent between or among users (for instance, included in a post), statusupdates such as updates to a user's status or updates to the status of arecord, uploaded files, indications of a user's personal preferencessuch as “likes” and “dislikes,” and links to other data or records.

Information updates can also be group-related, e.g., a change to groupstatus information for a group of which the user is one of possiblyadditional members. A user following, e.g., subscribed to, a record iscapable of viewing record updates on the user's news feed, which canalso include the other various types of information updates describedabove. Any number of users can follow a record and thus view recordupdates in this fashion. Some records are publicly accessible, such thatany user can follow the record, while other records are private, forwhich appropriate security clearance/permissions are a prerequisite to auser following the record.

Online social networks are increasingly becoming a common way tofacilitate communication between individuals and groups of individuals,any of whom can be recognized as “users” of a social networking system.In many social networks, individuals may establish connections with oneother, which may be referred to as “friending” one another. Byestablishing such a connection, one user may be able to see informationgenerated by or associated with another user. For instance, a first usermay be able to see information posted by a second user to the firstuser's personal social network page. One implementation of such apersonal social network page is a user's profile page, for example, inthe form of a web page representing the user's profile. For example, apost submitted by the second user about the first user can be presentedon the first user's profile feed, also referred to herein as the user's“wall,” which can be displayed on the first user's profile page.

In some implementations, an information feed in the context of a socialnetwork may be a collection of information selected from the socialnetwork for presentation in a user interface. The information presentedin the information feed may include posts to a user's wall or any othertype of information accessible within the social network. A feed itemcan include various types of data including character-based data, audiodata, video data, or combinations of these. For instance, a post caninclude text in combination with a JPEG image or animated image.

Feed items in information feeds such as a user's news feed may includemessages, which can take the form of: posts comprisingtextual/character-based inputs such as words, phrases, statements,questions, emotional expressions, symbols, leetspeak, or combinations ofthese; responses to posts, also referred to herein as “comments”, suchas words, phrases, statements, answers, questions, reactionary emotionalexpressions, or combinations of these; indications of personalpreferences which can be submitted as responses to posts or comments;status updates; and hyperlinks. In other examples, messages can be inthe form of file uploads, such as presentations, documents, multimediafiles, and the like.

In some implementations, a news feed may be specific to an individualuser, a group of users, or a data object (e.g., a file, document, Webpage, or a collection of documents, files, or Web pages). For instance,a group of users on a social network may publish a news feed. Members ofthe group and the larger social network may view and post to the groupnews feed in accordance with a permissions configuration for the newsfeed and the group.

In some implementations, when data such as posts or comments input fromone or more users are published to an information feed for a particularuser, group, object, or other construct within a social network, ane-mail notification or other type of notification (e.g., text message)may be transmitted to all users following the user, group, or object inaddition to the posting of the published data as a feed item in one ormore feeds, such as a news feed or a record feed. In some socialnetworks, the occurrence of such a notification is limited to the firstinstance of a published input, which may form part of a largerconversation. For instance, a notification may be transmitted for aninitial post, but neither for comments on the post nor for follow-upposts related to the initial post. In some other implementations,notifications are transmitted for all such published inputs.

These and other implementations may be embodied in various types ofhardware, software, firmware, of combinations of these. For example,some techniques disclosed herein may be implemented, at least in part,by machine-readable media that include program instructions, stateinformation, etc., for performing various services and operationsdescribed herein. Examples of program instructions include both machinecode, such as produced by a compiler, and files containing higher-levelcode that may be executed by a computing device such as a server orother data processing apparatus using an interpreter. Examples ofmachine-readable media include, but are not limited to, magnetic mediasuch as hard disks, floppy disks, and magnetic tape; optical media suchas CD-ROM disks; magneto-optical media; and hardware devices that arespecially configured to store program instructions, such as read-onlymemory devices (“ROM”) and random access memory (“RAM”) devices. Theseand other features of the disclosed implementations will be described inmore detail below with reference to the associated drawings.

The term “multi-tenant database system” can refer to those systems inwhich various elements of hardware and software of a database system maybe shared by one or more customers. For example, a given applicationserver may simultaneously process requests for a great number ofcustomers, and a given database table may store rows for a potentiallymuch greater number of customers. The term “query plan” generally refersto one or more operations used to access information in a databasesystem.

A “user profile” or “user's profile” is generally configured to storeand maintain data about the user of the database system. The data caninclude general information, such as title, phone number, a photo, abiographical summary, and a status (e.g., text describing what the useris currently doing). As mentioned below, the data can include messagescreated by other users. Where there are multiple tenants, a user istypically associated with a particular tenant. For example, a user couldbe a salesperson of a company, which is a tenant of the database systemthat provides a database service.

The term “record” generally refers to a data entity, such as an instanceof a data object created by a user of the database service, for example,about a particular (actual or potential) business relationship orproject. The data object can have a data structure defined by thedatabase service (a standard object) or defined by a subscriber (customobject). For example, a record can be for a business partner orpotential business partner (e.g., a client, vendor, distributor, etc.)of the user, and can include an entire company, subsidiaries, orcontacts at the company. As another example, a record can be a projectthat the user is working on, such as an opportunity (e.g., a possiblesale) with an existing partner, or a project that the user is trying toget. In one implementation of a multi-tenant database, each record forthe tenants has a unique identifier stored in a common table. A recordhas data fields that are defined by the structure of the object (e.g.,fields of certain data types and purposes). A record can also havecustom fields defined by a user. A field can be another record orinclude links thereto, thereby providing a parent-child relationshipbetween the records.

The terms “information feed” and “feed” are used interchangeably hereinand generally refer to a combination (e.g., a list) of feed items orentries with various types of information and data. Such feed items canbe stored and maintained in one or more database tables, e.g., as rowsin the table(s), that can be accessed to retrieve relevant informationto be presented as part of a displayed feed. The term “feed item” (orfeed element) refers to an item of information, which can be presentedin the feed such as a post published by a user. Feed items ofinformation about a user can be presented in a user's profile feed ofthe database, while feed items of information about a record can bepresented in a record feed in the database, by way of example. A profilefeed and a record feed are examples of different information feeds. Asecond user following a first user or record can receive the feed itemsassociated with the first user and the record for display in the seconduser's news feed, which is another type of information feed. In someimplementations, the feed items from any number of followed users andrecords can be combined into a single information feed of a particularuser.

As examples, a feed item can be a message, such as a user-generated postof text data, and a feed tracked update to a record or profile, such asa change to a field of the record. A feed can be a combination ofmessages and feed tracked updates. Messages include text created by auser, and may include other data as well. Examples of messages includeposts, user status updates, and comments. Messages can be created for auser's profile or for a record. Posts can be created by various users,potentially any user, although some restrictions can be applied. As anexample, posts can be made to a wall section of a user's profile page(which can include a number of recent posts) or a section of a recordthat includes multiple posts. The posts can be organized inchronological order when displayed in a graphical user interface (GUI),for instance, on the user's profile page, as part of the user's profilefeed. In contrast to a post, a user status update changes a status of auser and can be made by that user or an administrator. Other similarsections of a user's profile can also include an “About” section. Arecord can also have a status, the update of which can be provided by anowner of the record or other users having suitable write accesspermissions to the record. The owner can be a single user, multipleusers, or a group. In one implementation, there is only one status for arecord.

In one implementation, a comment can be made on any feed item. Inanother implementation, comments are organized as a list explicitly tiedto a particular feed tracked update, post, or status update. In thisimplementation, comments may not be listed in the first layer (in ahierarchal sense) of feed items, but listed as a second layer branchingfrom a particular first layer feed item.

A “feed tracked update,” also referred to herein as a “feed update,” isone type of information update and generally refers to data representingan event. A feed tracked update can include text generated by thedatabase system in response to the event, to be provided as one or morefeed items for possible inclusion in one or more feeds. In oneimplementation, the data can initially be stored, and then the databasesystem can later use the data to create text for describing the event.Both the data and/or the text can be a feed tracked update, as usedherein. In various implementations, an event can be an update of arecord and/or can be triggered by a specific action by a user. Whichactions trigger an event can be configurable. Which events have feedtracked updates created and which feed updates are sent to which userscan also be configurable. Messages and feed updates can be stored as afield or child object of the record. For example, the feed can be storedas a child object of the record.

A “group” is generally a collection of users. In some implementations,the group may be defined as users with a same or similar attribute, orby membership. In one implementation, a “group feed” includes any feeditem about any user in a group. In another implementation, the groupfeed includes feed items that are about the group as a whole. In oneimplementation, the feed items for a group are only posts and comments.

An “entity feed” or “record feed” generally refers to a feed of feeditems about a particular record in the database, such as feed trackedupdates about changes to the record and posts made by users about therecord. An entity feed can be composed of any type of feed item. Such afeed can be displayed on a page such as a web page associated with therecord, e.g., a home page of the record. As used herein, a “profilefeed” is a feed of feed items about a particular user. In oneimplementation, the feed items for a profile feed are posts and commentsthat other users make about or send to the particular user, and statusupdates made by the particular user. Such a profile feed can bedisplayed on a page associated with the particular user. In anotherimplementation, feed items in a profile feed could include posts made bythe particular user and feed tracked updates initiated based on actionsof the particular user.

I. General Overview

Systems, apparatus, and methods are provided for implementing enterpriselevel social and business information networking. Such implementationscan provide more efficient use of a database system. For instance, auser of a database system may not easily know when important informationin the database has changed, e.g., about a project or client.Implementations can provide feed tracked updates about such changes andother events, thereby keeping users informed.

By way of example, a user can update a record (e.g., an opportunity suchas a possible sale of 1000 computers). Once the record update has beenmade, a feed tracked update about the record update can thenautomatically be sent (e.g., in a feed) to anyone subscribing to theopportunity or to the user. Thus, the user does not need to contact amanager regarding the change in the opportunity, since the feed trackedupdate about the update is sent via a feed right to the manager's feedpage (or other page).

Next, mechanisms and methods for providing systems implementingenterprise level social and business information networking will bedescribed with reference to example implementations. First, an overviewof an example database system is described, and then examples oftracking events for a record, actions of a user, and messages about auser or record are described. Various implementations about the datastructure of feeds, customizing feeds, user selection of records andusers to follow, generating feeds, and displaying feeds are alsodescribed.

II. System Overview

FIG. 1A shows a block diagram of an example of an environment 10 inwhich an on-demand database service can be used in accordance with someimplementations. Environment 10 may include user systems 12, network 14,database system 16, processor system 17, application platform 18,network interface 20, tenant data storage 22, system data storage 24,program code 26, and process space 28. In other implementations,environment 10 may not have all of these components and/or may haveother components instead of, or in addition to, those listed above.

Environment 10 is an environment in which an on-demand database serviceexists. User system 12 may be any machine or system that is used by auser to access a database system 16. For example, any of user systems 12can be a handheld computing device, a mobile phone, a laptop computer, awork station, and/or a network of such computing devices. As illustratedin FIG. 1A (and in more detail in FIG. 1B) user systems 12 mightinteract via a network 14 with an on-demand database service, which isimplemented in the example of FIG. 1A as database system 16.

An on-demand database service, such as system 16, is a database systemthat is made available to outside users, who do not need to necessarilybe concerned with building and/or maintaining the database system.Instead, the database system may be available for their use when theusers need the database system, i.e., on the demand of the users. Someon-demand database services may store information from one or moretenants into tables of a common database image to form a multi-tenantdatabase system (MTS). A database image may include one or more databaseobjects. A relational database management system (RDBMS) or theequivalent may execute storage and retrieval of information against thedatabase object(s). Application platform 18 may be a framework thatallows the applications of system 16 to run, such as the hardware and/orsoftware, e.g., the operating system. In some implementations,application platform 18 enables creation, managing and executing one ormore applications developed by the provider of the on-demand databaseservice, users accessing the on-demand database service via user systems12, or third party application developers accessing the on-demanddatabase service via user systems 12.

The users of user systems 12 may differ in their respective capacities,and the capacity of a particular user system 12 might be entirelydetermined by permissions (permission levels) for the current user. Forexample, where a salesperson is using a particular user system 12 tointeract with system 16, that user system has the capacities allotted tothat salesperson. However, while an administrator is using that usersystem to interact with system 16, that user system has the capacitiesallotted to that administrator. In systems with a hierarchical rolemodel, users at one permission level may have access to applications,data, and database information accessible by a lower permission leveluser, but may not have access to certain applications, databaseinformation, and data accessible by a user at a higher permission level.Thus, different users will have different capabilities with regard toaccessing and modifying application and database information, dependingon a user's security or permission level, also called authorization.

Network 14 is any network or combination of networks of devices thatcommunicate with one another. For example, network 14 can be any one orany combination of a LAN (local area network), WAN (wide area network),telephone network, wireless network, point-to-point network, starnetwork, token ring network, hub network, or other appropriateconfiguration. Network 14 can include a TCP/IP (Transfer ControlProtocol and Internet Protocol) network, such as the global internetworkof networks often referred to as the “Internet” with a capital “I.” TheInternet will be used in many of the examples herein. However, it shouldbe understood that the networks that the present implementations mightuse are not so limited, although TCP/IP is a frequently implementedprotocol.

User systems 12 might communicate with system 16 using TCP/IP and, at ahigher network level, use other common Internet protocols tocommunicate, such as HTTP, FTP, AFS, WAP, etc. In an example where HTTPis used, user system 12 might include an HTTP client commonly referredto as a “browser” for sending and receiving HTTP signals to and from anHTTP server at system 16. Such an HTTP server might be implemented asthe sole network interface 20 between system 16 and network 14, butother techniques might be used as well or instead. In someimplementations, the network interface 20 between system 16 and network14 includes load sharing functionality, such as round-robin HTTP requestdistributors to balance loads and distribute incoming HTTP requestsevenly over a plurality of servers. At least for users accessing system16, each of the plurality of servers has access to the MTS' data;however, other alternative configurations may be used instead.

In one implementation, system 16, shown in FIG. 1A, implements aweb-based customer relationship management (CRM) system. For example, inone implementation, system 16 includes application servers configured toimplement and execute CRM software applications as well as providerelated data, code, forms, web pages and other information to and fromuser systems 12 and to store to, and retrieve from, a database systemrelated data, objects, and Webpage content. With a multi-tenant system,data for multiple tenants may be stored in the same physical databaseobject in tenant data storage 22, however, tenant data typically isarranged in the storage medium(s) of tenant data storage 22 so that dataof one tenant is kept logically separate from that of other tenants sothat one tenant does not have access to another tenant's data, unlesssuch data is expressly shared. In certain implementations, system 16implements applications other than, or in addition to, a CRMapplication. For example, system 16 may provide tenant access tomultiple hosted (standard and custom) applications, including a CRMapplication. User (or third party developer) applications, which may ormay not include CRM, may be supported by the application platform 18,which manages creation, storage of the applications into one or moredatabase objects and executing of the applications in a virtual machinein the process space of the system 16.

One arrangement for elements of system 16 is shown in FIGS. 1A and 1B,including a network interface 20, application platform 18, tenant datastorage 22 for tenant data 23, system data storage 24 for system data 25accessible to system 16 and possibly multiple tenants, program code 26for implementing various functions of system 16, and a process space 28for executing MTS system processes and tenant-specific processes, suchas running applications as part of an application hosting service.Additional processes that may execute on system 16 include databaseindexing processes.

Several elements in the system shown in FIG. 1A include conventional,well-known elements that are explained only briefly here. For example,each user system 12 could include a desktop personal computer,workstation, laptop, PDA, cell phone, or any wireless access protocol(WAP) enabled device or any other computing device capable ofinterfacing directly or indirectly to the Internet or other networkconnection. User system 12 typically runs an HTTP client, e.g., abrowsing program, such as Microsoft's Internet Explorer browser,Netscape's Navigator browser, Opera's browser, or a WAP-enabled browserin the case of a cell phone, PDA or other wireless device, or the like,allowing a user (e.g., subscriber of the multi-tenant database system)of user system 12 to access, process and view information, pages andapplications available to it from system 16 over network 14. Each usersystem 12 also typically includes one or more user interface devices,such as a keyboard, a mouse, trackball, touch pad, touch screen, pen orthe like, for interacting with a graphical user interface (GUI) providedby the browser on a display (e.g., a monitor screen, LCD display, etc.)of the computing device in conjunction with pages, forms, applicationsand other information provided by system 16 or other systems or servers.For example, the user interface device can be used to access data andapplications hosted by system 16, and to perform searches on storeddata, and otherwise allow a user to interact with various GUI pages thatmay be presented to a user. As discussed above, implementations aresuitable for use with the Internet, although other networks can be usedinstead of or in addition to the Internet, such as an intranet, anextranet, a virtual private network (VPN), a non-TCP/IP based network,any LAN or WAN or the like.

According to one implementation, each user system 12 and all of itscomponents are operator configurable using applications, such as abrowser, including computer code run using a central processing unitsuch as an Intel Pentium® processor or the like. Similarly, system 16(and additional instances of an MTS, where more than one is present) andall of its components might be operator configurable usingapplication(s) including computer code to run using processor system 17,which may be implemented to include a central processing unit, which mayinclude an Intel Pentium® processor or the like, and/or multipleprocessor units. A computer program product implementation includes anon-transitory machine-readable storage medium (media) havinginstructions stored thereon/in, which can be used to program a computerto perform any of the processes/methods of the implementations describedherein. Computer program code 26 for operating and configuring system 16to intercommunicate and to process web pages, applications and otherdata and media content as described herein is preferably downloadableand stored on a hard disk, but the entire program code, or portionsthereof, may also be stored in any other volatile or non-volatile memorymedium or device as is well known, such as a ROM or RAM, or provided onany media capable of storing program code, such as any type of rotatingmedia including floppy disks, optical discs, digital versatile disk(DVD), compact disk (CD), microdrive, and magneto-optical disks, andmagnetic or optical cards, nanosystems (including molecular memory ICs),or any type of media or device suitable for storing instructions and/ordata. Additionally, the entire program code, or portions thereof, may betransmitted and downloaded from a software source over a transmissionmedium, e.g., over the Internet, or from another server, as is wellknown, or transmitted over any other conventional network connection asis well known (e.g., extranet, VPN, LAN, etc.) using any communicationmedium and protocols (e.g., TCP/IP, HTTP, HTTPS, Ethernet, etc.) as arewell known. It will also be appreciated that computer code for thedisclosed implementations can be realized in any programming languagethat can be executed on a client system and/or server or server systemsuch as, for example, C, C++, HTML, any other markup language, Java™,JavaScript, ActiveX, any other scripting language, such as VBScript, andmany other programming languages as are well known may be used. (Java™is a trademark of Sun Microsystems, Inc.).

According to some implementations, each system 16 is configured toprovide web pages, forms, applications, data and media content to user(client) systems 12 to support the access by user systems 12 as tenantsof system 16. As such, system 16 provides security mechanisms to keepeach tenant's data separate unless the data is shared. If more than oneMTS is used, they may be located in close proximity to one another(e.g., in a server farm located in a single building or campus), or theymay be distributed at locations remote from one another (e.g., one ormore servers located in city A and one or more servers located in cityB). As used herein, each MTS could include one or more logically and/orphysically connected servers distributed locally or across one or moregeographic locations. Additionally, the term “server” is meant to referto a computing device or system, including processing hardware andprocess space(s), an associated storage system such as a memory deviceor database, and, in some instances, a database application (e.g.,OODBMS or RDBMS) as is well known in the art. It should also beunderstood that “server system” and “server” are often usedinterchangeably herein. Similarly, the database objects described hereincan be implemented as single databases, a distributed database, acollection of distributed databases, a database with redundant online oroffline backups or other redundancies, etc., and might include adistributed database or storage network and associated processingintelligence.

FIG. 1B shows a block diagram of an example of some implementations ofelements of FIG. 1A and various possible interconnections between theseelements. That is, FIG. 1B also illustrates environment 10. However, inFIG. 1B elements of system 16 and various interconnections in someimplementations are further illustrated. FIG. 1B shows that user system12 may include processor system 12A, memory system 12B, input system12C, and output system 12D. FIG. 1B shows network 14 and system 16. FIG.1B also shows that system 16 may include tenant data storage 22, tenantdata 23, system data storage 24, system data 25, User Interface (UI) 30,Application Program Interface (API) 32, PL/SOQL 34, save routines 36,application setup mechanism 38, applications servers 1001-100N, systemprocess space 102, tenant process spaces 104, tenant management processspace 110, tenant storage area 112, user storage 114, and applicationmetadata 116. In other implementations, environment 10 may not have thesame elements as those listed above and/or may have other elementsinstead of, or in addition to, those listed above.

User system 12, network 14, system 16, tenant data storage 22, andsystem data storage 24 were discussed above in FIG. 1A. Regarding usersystem 12, processor system 12A may be any combination of one or moreprocessors. Memory system 12B may be any combination of one or morememory devices, short term, and/or long term memory. Input system 12Cmay be any combination of input devices, such as one or more keyboards,mice, trackballs, scanners, cameras, and/or interfaces to networks.Output system 12D may be any combination of output devices, such as oneor more monitors, printers, and/or interfaces to networks. As shown byFIG. 1B, system 16 may include a network interface 20 (of FIG. 1A)implemented as a set of HTTP application servers 100, an applicationplatform 18, tenant data storage 22, and system data storage 24. Alsoshown is system process space 102, including individual tenant processspaces 104 and a tenant management process space 110. Each applicationserver 100 may be configured to communicate with tenant data storage 22and the tenant data 23 therein, and system data storage 24 and thesystem data 25 therein to serve requests of user systems 12. The tenantdata 23 might be divided into individual tenant storage areas 112, whichcan be either a physical arrangement and/or a logical arrangement ofdata. Within each tenant storage area 112, user storage 114 andapplication metadata 116 might be similarly allocated for each user. Forexample, a copy of a user's most recently used (MRU) items might bestored to user storage 114. Similarly, a copy of MRU items for an entireorganization that is a tenant might be stored to tenant storage area112. A UI 30 provides a user interface and an API 32 provides anapplication programmer interface to system 16 resident processes tousers and/or developers at user systems 12. The tenant data and thesystem data may be stored in various databases, such as one or moreOracle □ databases.

Application platform 18 includes an application setup mechanism 38 thatsupports application developers' creation and management ofapplications, which may be saved as metadata into tenant data storage 22by save routines 36 for execution by subscribers as one or more tenantprocess spaces 104 managed by tenant management process 110 for example.Invocations to such applications may be coded using PL/SOQL 34 thatprovides a programming language style interface extension to API 32. Adetailed description of some PL/SOQL language implementations isdiscussed in commonly owned U.S. Provisional Patent Application60/828,192 entitled, PROGRAMMING LANGUAGE METHOD AND SYSTEM FOREXTENDING APIS TO EXECUTE IN CONJUNCTION WITH DATABASE APIS, by CraigWeissman, filed Oct. 4, 2006, which is hereby incorporated by referencein its entirety and for all purposes. Invocations to applications may bedetected by one or more system processes, which manage retrievingapplication metadata 116 for the subscriber making the invocation andexecuting the metadata as an application in a virtual machine.

Each application server 100 may be communicably coupled to databasesystems, e.g., having access to system data 25 and tenant data 23, via adifferent network connection. For example, one application server 1001might be coupled via the network 14 (e.g., the Internet), anotherapplication server 100N−1 might be coupled via a direct network link,and another application server 100N might be coupled by yet a differentnetwork connection. Transfer Control Protocol and Internet Protocol(TCP/IP) are typical protocols for communicating between applicationservers 100 and the database system. However, it will be apparent to oneskilled in the art that other transport protocols may be used tooptimize the system depending on the network interconnect used.

In certain implementations, each application server 100 is configured tohandle requests for any user associated with any organization that is atenant. Because it is desirable to be able to add and remove applicationservers from the server pool at any time for any reason, there ispreferably no server affinity for a user and/or organization to aspecific application server 100. In one implementation, therefore, aninterface system implementing a load balancing function (e.g., an F5Big-IP load balancer) is communicably coupled between the applicationservers 100 and the user systems 12 to distribute requests to theapplication servers 100. In one implementation, the load balancer uses aleast connections algorithm to route user requests to the applicationservers 100. Other examples of load balancing algorithms, such as roundrobin and observed response time, also can be used. For example, incertain implementations, three consecutive requests from the same usercould hit three different application servers 100, and three requestsfrom different users could hit the same application server 100. In thismanner, by way of example, system 16 is multi-tenant, wherein system 16handles storage of, and access to, different objects, data andapplications across disparate users and organizations.

As an example of storage, one tenant might be a company that employs asales force where each salesperson uses system 16 to manage their salesprocess. Thus, a user might maintain contact data, leads data, customerfollow-up data, performance data, goals and progress data, etc., allapplicable to that user's personal sales process (e.g., in tenant datastorage 22). In an example of a MTS arrangement, since all of the dataand the applications to access, view, modify, report, transmit,calculate, etc., can be maintained and accessed by a user system havingnothing more than network access, the user can manage his or her salesefforts and cycles from any of many different user systems. For example,if a salesperson is visiting a customer and the customer has Internetaccess in their lobby, the salesperson can obtain critical updates as tothat customer while waiting for the customer to arrive in the lobby.

While each user's data might be separate from other users' dataregardless of the employers of each user, some data might beorganization-wide data shared or accessible by a plurality of users orall of the users for a given organization that is a tenant. Thus, theremight be some data structures managed by system 16 that are allocated atthe tenant level while other data structures might be managed at theuser level. Because an MTS might support multiple tenants includingpossible competitors, the MTS should have security protocols that keepdata, applications, and application use separate. Also, because manytenants may opt for access to an MTS rather than maintain their ownsystem, redundancy, up-time, and backup are additional functions thatmay be implemented in the MTS. In addition to user-specific data andtenant-specific data, system 16 might also maintain system level datausable by multiple tenants or other data. Such system level data mightinclude industry reports, news, postings, and the like that are sharableamong tenants.

In certain implementations, user systems 12 (which may be clientsystems) communicate with application servers 100 to request and updatesystem-level and tenant-level data from system 16 that may requiresending one or more queries to tenant data storage 22 and/or system datastorage 24. System 16 (e.g., an application server 100 in system 16)automatically generates one or more SQL statements (e.g., one or moreSQL queries) that are designed to access the desired information. Systemdata storage 24 may generate query plans to access the requested datafrom the database.

Each database can generally be viewed as a collection of objects, suchas a set of logical tables, containing data fitted into predefinedcategories. A “table” is one representation of a data object, and may beused herein to simplify the conceptual description of objects and customobjects according to some implementations. It should be understood that“table” and “object” may be used interchangeably herein. Each tablegenerally contains one or more data categories logically arranged ascolumns or fields in a viewable schema. Each row or record of a tablecontains an instance of data for each category defined by the fields.For example, a CRM database may include a table that describes acustomer with fields for basic contact information such as name,address, phone number, fax number, etc. Another table might describe apurchase order, including fields for information such as customer,product, sale price, date, etc. In some multi-tenant database systems,standard entity tables might be provided for use by all tenants. For CRMdatabase applications, such standard entities might include tables forcase, account, contact, lead, and opportunity data objects, eachcontaining pre-defined fields. It should be understood that the word“entity” may also be used interchangeably herein with “object” and“table.”

In some multi-tenant database systems, tenants may be allowed to createand store custom objects, or they may be allowed to customize standardentities or objects, for example by creating custom fields for standardobjects, including custom index fields. U.S. Pat. No. 7,779,039 byWeissman et al., filed Apr. 2, 2004, entitled “Custom Entities andFields in a Multi-Tenant Database System”, and which is herebyincorporated by reference in its entirety and for all purposes, teachessystems and methods for creating custom objects as well as customizingstandard objects in a multi-tenant database system. In certainimplementations, for example, all custom entity data rows are stored ina single multi-tenant physical table, which may contain multiple logicaltables per organization. It is transparent to customers that theirmultiple “tables” are in fact stored in one large table or that theirdata may be stored in the same table as the data of other customers.

FIG. 2A shows a system diagram illustrating an example of architecturalcomponents of an on-demand service environment 200 according to someimplementations. A client machine located in the cloud 204, generallyreferring to one or more networks in combination, as described herein,may communicate with the on-demand service environment via one or moreedge routers 208 and 212. A client machine can be any of the examples ofuser systems 12 described above. The edge routers may communicate withone or more core switches 220 and 224 via firewall 216. The coreswitches may communicate with a load balancer 228, which may distributeserver load over different pods, such as the pods 240 and 244. The pods240 and 244, which may each include one or more servers and/or othercomputing resources, may perform data processing and other operationsused to provide on-demand services. Communication with the pods may beconducted via pod switches 232 and 236. Components of the on-demandservice environment may communicate with a database storage 256 via adatabase firewall 248 and a database switch 252.

As shown in FIGS. 2A and 2B, accessing an on-demand service environmentmay involve communications transmitted among a variety of differenthardware and/or software components. Further, the on-demand serviceenvironment 200 is a simplified representation of an actual on-demandservice environment. For example, while only one or two devices of eachtype are shown in FIGS. 2A and 2B, some implementations of an on-demandservice environment may include anywhere from one to many devices ofeach type. Also, the on-demand service environment need not include eachdevice shown in FIGS. 2A and 2B, or may include additional devices notshown in FIGS. 2A and 2B.

Moreover, one or more of the devices in the on-demand serviceenvironment 200 may be implemented on the same physical device or ondifferent hardware. Some devices may be implemented using hardware or acombination of hardware and software. Thus, terms such as “dataprocessing apparatus,” “machine,” “server” and “device” as used hereinare not limited to a single hardware device, but rather include anyhardware and software configured to provide the described functionality.

The cloud 204 is intended to refer to a data network or plurality ofdata networks, often including the Internet. Client machines located inthe cloud 204 may communicate with the on-demand service environment toaccess services provided by the on-demand service environment. Forexample, client machines may access the on-demand service environment toretrieve, store, edit, and/or process information.

In some implementations, the edge routers 208 and 212 route packetsbetween the cloud 204 and other components of the on-demand serviceenvironment 200. The edge routers 208 and 212 may employ the BorderGateway Protocol (BGP). The BGP is the core routing protocol of theInternet. The edge routers 208 and 212 may maintain a table of IPnetworks or ‘prefixes’, which designate network reachability amongautonomous systems on the Internet.

In one or more implementations, the firewall 216 may protect the innercomponents of the on-demand service environment 200 from Internettraffic. The firewall 216 may block, permit, or deny access to the innercomponents of the on-demand service environment 200 based upon a set ofrules and other criteria. The firewall 216 may act as one or more of apacket filter, an application gateway, a stateful filter, a proxyserver, or any other type of firewall.

In some implementations, the core switches 220 and 224 are high-capacityswitches that transfer packets within the on-demand service environment200. The core switches 220 and 224 may be configured as network bridgesthat quickly route data between different components within theon-demand service environment. In some implementations, the use of twoor more core switches 220 and 224 may provide redundancy and/or reducedlatency.

In some implementations, the pods 240 and 244 may perform the core dataprocessing and service functions provided by the on-demand serviceenvironment. Each pod may include various types of hardware and/orsoftware computing resources. An example of the pod architecture isdiscussed in greater detail with reference to FIG. 2B.

In some implementations, communication between the pods 240 and 244 maybe conducted via the pod switches 232 and 236. The pod switches 232 and236 may facilitate communication between the pods 240 and 244 and clientmachines located in the cloud 204, for example via core switches 220 and224. Also, the pod switches 232 and 236 may facilitate communicationbetween the pods 240 and 244 and the database storage 256.

In some implementations, the load balancer 228 may distribute workloadbetween the pods 240 and 244. Balancing the on-demand service requestsbetween the pods may assist in improving the use of resources,increasing throughput, reducing response times, and/or reducingoverhead. The load balancer 228 may include multilayer switches toanalyze and forward traffic.

In some implementations, access to the database storage 256 may beguarded by a database firewall 248. The database firewall 248 may act asa computer application firewall operating at the database applicationlayer of a protocol stack. The database firewall 248 may protect thedatabase storage 256 from application attacks such as structure querylanguage (SQL) injection, database rootkits, and unauthorizedinformation disclosure.

In some implementations, the database firewall 248 may include a hostusing one or more forms of reverse proxy services to proxy trafficbefore passing it to a gateway router. The database firewall 248 mayinspect the contents of database traffic and block certain content ordatabase requests. The database firewall 248 may work on the SQLapplication level atop the TCP/IP stack, managing applications'connection to the database or SQL management interfaces as well asintercepting and enforcing packets traveling to or from a databasenetwork or application interface.

In some implementations, communication with the database storage 256 maybe conducted via the database switch 252. The multi-tenant databasestorage 256 may include more than one hardware and/or softwarecomponents for handling database queries. Accordingly, the databaseswitch 252 may direct database queries transmitted by other componentsof the on-demand service environment (e.g., the pods 240 and 244) to thecorrect components within the database storage 256.

In some implementations, the database storage 256 is an on-demanddatabase system shared by many different organizations. The on-demanddatabase system may employ a multi-tenant approach, a virtualizedapproach, or any other type of database approach. An on-demand databasesystem is discussed in greater detail with reference to FIGS. 1A and 1B.

FIG. 2B shows a system diagram further illustrating an example ofarchitectural components of an on-demand service environment accordingto some implementations. The pod 244 may be used to render services to auser of the on-demand service environment 200. In some implementations,each pod may include a variety of servers and/or other systems. The pod244 includes one or more content batch servers 264, content searchservers 268, query servers 282, file force servers 286, access controlsystem (ACS) servers 280, batch servers 284, and app servers 288. Also,the pod 244 includes database instances 290, quick file systems (QFS)292, and indexers 294. In one or more implementations, some or allcommunication between the servers in the pod 244 may be transmitted viathe switch 236.

In some implementations, the app servers 288 may include a hardwareand/or software framework dedicated to the execution of procedures(e.g., programs, routines, scripts) for supporting the construction ofapplications provided by the on-demand service environment 200 via thepod 244. In some implementations, the hardware and/or software frameworkof an app server 288 is configured to execute operations of the servicesdescribed herein, including performance of the blocks ofmethods/processes described with reference to FIGS. 15-16, 20, 23, and25. In alternative implementations, two or more app servers 288 may beincluded and cooperate to perform such methods, or one or more otherservers in FIG. 2B can be configured to perform the disclosed methods.

The content batch servers 264 may requests internal to the pod. Theserequests may be long-running and/or not tied to a particular customer.For example, the content batch servers 264 may handle requests relatedto log mining, cleanup work, and maintenance tasks.

The content search servers 268 may provide query and indexer functions.For example, the functions provided by the content search servers 268may allow users to search through content stored in the on-demandservice environment.

The file force servers 286 may manage requests information stored in theFileforce storage 278. The Fileforce storage 278 may store informationsuch as documents, images, and basic large objects (BLOBs). By managingrequests for information using the file force servers 286, the imagefootprint on the database may be reduced.

The query servers 282 may be used to retrieve information from one ormore file systems. For example, the query system 282 may receiverequests for information from the app servers 288 and then transmitinformation queries to the NFS 296 located outside the pod.

The pod 244 may share a database instance 290 configured as amulti-tenant environment in which different organizations share accessto the same database. Additionally, services rendered by the pod 244 mayrequire various hardware and/or software resources. In someimplementations, the ACS servers 280 may control access to data,hardware resources, or software resources.

In some implementations, the batch servers 284 may process batch jobs,which are used to run tasks at specified times. Thus, the batch servers284 may transmit instructions to other servers, such as the app servers288, to trigger the batch jobs.

In some implementations, the QFS 292 may be an open source file systemavailable from Oracle Corporation® of Redwood Shores, Calif. The QFS mayserve as a rapid-access file system for storing and accessinginformation available within the pod 244. The QFS 292 may support somevolume management capabilities, allowing many disks to be groupedtogether into a file system. File system metadata can be kept on aseparate set of disks, which may be useful for streaming applicationswhere long disk seeks cannot be tolerated. Thus, the QFS system maycommunicate with one or more content search servers 268 and/or indexers294 to identify, retrieve, move, and/or update data stored in thenetwork file systems 296 and/or other storage systems.

In some implementations, one or more query servers 282 may communicatewith the NFS 296 to retrieve and/or update information stored outside ofthe pod 244. The NFS 296 may allow servers located in the pod 244 toaccess information to access files over a network in a manner similar tohow local storage is accessed.

In some implementations, queries from the query servers 222 may betransmitted to the NFS 296 via the load balancer 228, which maydistribute resource requests over various resources available in theon-demand service environment. The NFS 296 may also communicate with theQFS 292 to update the information stored on the NFS 296 and/or toprovide information to the QFS 292 for use by servers located within thepod 244.

In some implementations, the pod may include one or more databaseinstances 290. The database instance 290 may transmit information to theQFS 292. When information is transmitted to the QFS, it may be availablefor use by servers within the pod 244 without requiring an additionaldatabase call.

In some implementations, database information may be transmitted to theindexer 294. Indexer 294 may provide an index of information availablein the database 290 and/or QFS 292. The index information may beprovided to file force servers 286 and/or the QFS 292.

III. Tracking Updates to a Record Stored in a Database

As multiple users might be able to change the data of a record, it canbe useful for certain users to be notified when a record is updated.Also, even if a user does not have authority to change a record, theuser still might want to know when there is an update to the record. Forexample, a vendor may negotiate a new price with a salesperson ofcompany X, where the salesperson is a user associated with tenant Y. Aspart of creating a new invoice or for accounting purposes, thesalesperson can change the price saved in the database. It may beimportant for co-workers to know that the price has changed. Thesalesperson could send an e-mail to certain people, but this is onerousand the salesperson might not e-mail all of the people who need to knowor want to know. Accordingly, some implementations of the disclosedtechniques can inform others (e.g., co-workers) who want to know aboutan update to a record automatically.

FIG. 3 shows a flowchart of an example of a method 300 for trackingupdates to a record stored in a database system, performed in accordancewith some implementations. Method 300 (and other methods describedherein) may be implemented at least partially with multi-tenant databasesystem 16, e.g., by one or more processors configured to receive orretrieve information, process the information, store results, andtransmit the results. In other implementations, method 300 may beimplemented at least partially with a single tenant database system. Invarious implementations, blocks may be omitted, combined, or split intoadditional blocks for method 300, as well as for other methods describedherein.

In block 310, the database system receives a request to update a firstrecord. In one implementation, the request is received from a firstuser. For example, a user may be accessing a page associated with thefirst record, and may change a displayed field and hit save. In anotherimplementation, the database system can automatically create therequest. For instance, the database system can create the request inresponse to another event, e.g., a request to change a field could besent periodically at a particular date and/or time of day, or a changeto another field or object. The database system can obtain a new valuebased on other fields of a record and/or based on parameters in thesystem.

The request for the update of a field of a record is an example of anevent associated with the first record for which a feed tracked updatemay be created. In other implementations, the database system canidentify other events besides updates to fields of a record. Forexample, an event can be a submission of approval to change a field.Such an event can also have an associated field (e.g., a field showing astatus of whether a change has been submitted). Other examples of eventscan include creation of a record, deletion of a record, converting arecord from one type to another (e.g., converting a lead to anopportunity), closing a record (e.g., a case type record), andpotentially any other state change of a record—any of which couldinclude a field change associated with the state change. Any of theseevents update the record whether by changing a field of the record, astate of the record, or some other characteristic or property of therecord. In one implementation, a list of supported events for creating afeed tracked update can be maintained within the database system, e.g.,at a server or in a database.

In block 320, the database system writes new data to the first record.In one implementation, the new data may include a new value thatreplaces old data. For example, a field is updated with a new value. Inanother implementation, the new data can be a value for a field that didnot contain data before. In yet another implementation, the new datacould be a flag, e.g., for a status of the record, which can be storedas a field of the record.

In some implementations, a “field” can also include records, which arechild objects of the first record in a parent-child hierarchy. A fieldcan alternatively include a pointer to a child record. A child objectitself can include further fields. Thus, if a field of a child object isupdated with a new value, the parent record also can be considered tohave a field changed. In one example, a field could be a list of relatedchild objects, also called a related list.

In block 330, a feed tracked update is generated about the update to therecord. In one implementation, the feed tracked update is created inparts for assembling later into a display version. For example, evententries can be created and tracked in one table, and changed fieldentries can be tracked in another table that is cross-referenced withthe first table. More specifics of such implementations are providedlater, e.g., with respect to FIG. 9A. In another implementation, thefeed tracked update is automatically generated by the database system.The feed tracked update can convey in words that the first record hasbeen updated and provide details about what was updated in the recordand who performed the update. In some implementations, a feed trackedupdate is generated for only certain types of event and/or updatesassociated with the first record.

In one implementation, a tenant (e.g., through an administrator) canconfigure the database system to create (enable) feed tracked updatesonly for certain types of records. For example, an administrator canspecify that records of designated types such as accounts andopportunities are enabled. When an update (or other event) is receivedfor the enabled record type, then a feed tracked update would begenerated. In another implementation, a tenant can also specify thefields of a record whose changes are to be tracked, and for which feedtracked updates are created. In one aspect, a maximum number of fieldscan be specified for tracking, and may include custom fields. In oneimplementation, the type of change can also be specified, for example,that the value change of a field is required to be larger than athreshold (e.g., an absolute amount or a percentage change). In yetanother implementation, a tenant can specify which events are to cause ageneration of a feed tracked update. Also, in one implementation,individual users can specify configurations specific to them, which cancreate custom feeds as described in more detail below.

In one implementation, changes to fields of a child object are nottracked to create feed tracked updates for the parent record. In anotherimplementation, the changes to fields of a child object can be trackedto create feed tracked updates for the parent record. For example, achild object of the parent type can be specified for tracking, andcertain fields of the child object can be specified for tracking. Asanother example, if the child object is of a type specified fortracking, then a tracked change for the child object is propagated toparent records of the child object.

In block 340, the feed tracked update is added to a feed for the firstrecord. In one implementation, adding the feed tracked update to a feedcan include adding events to a table (which may be specific to a recordor be for all or a group of objects), where a display version of a feedtracked update can be generated dynamically and presented as aninformation update when a user requests a feed for the first record. Inanother implementation, a display version of a feed tracked update canbe added when a record feed is stored and maintained for a record. Asmentioned above, a feed may be maintained for only certain records. Inone implementation, the feed of a record can be stored in the databaseassociated with the record. For example, the feed can be stored as afield (e.g., as a child object) of the record. Such a field can store apointer to the text to be displayed for the feed tracked update.

In some implementations, only the current feed tracked update (or othercurrent feed item) may be kept or temporarily stored, e.g., in sometemporary memory structure. For example, a feed tracked update for onlya most recent change to any particular field is kept. In otherimplementations, many previous feed tracked updates may be kept in thefeed. A time and/or date for each feed tracked update can be tracked.Herein, a feed of a record is also referred to as an entity feed, as arecord is an instance of a particular entity object of the database.

In block 350, followers of the first record can be identified. Afollower is a user following the first record, such as a subscriber tothe feed of the first record. In one implementation, when a userrequests a feed of a particular record, such an identification of block350 can be omitted. In another implementation where a record feed ispushed to a user (e.g., as part of a news feed), then the user can beidentified as a follower of the first record. Accordingly, this blockcan include the identification of records and other objects beingfollowed by a particular user.

In one implementation, the database system can store a list of thefollowers for a particular record. In various implementations, the listcan be stored with the first record or associated with the record usingan identifier (e.g., a pointer) to retrieve the list. For example, thelist can be stored in a field of the first record. In anotherimplementation, a list of the records that a user is following is used.In one implementation, the database system can have a routine that runsfor each user, where the routine polls the records in the list todetermine if a new feed tracked update has been added to a feed of therecord. In another implementation, the routine for the user can berunning at least partially on a user device, which contacts the databaseto perform the polling.

In block 360, in one implementation, the feed tracked update can bestored in a table, as described in greater detail below. When the useropens a feed, an appropriate query is sent to one or more tables toretrieve updates to records, also described in greater detail below. Insome implementations, the feed shows feed tracked updates in reversechronological order. In one implementation, the feed tracked update ispushed to the feed of a user, e.g., by a routine that determines thefollowers for the record from a list associated with the record. Inanother implementation, the feed tracked update is pulled to a feed,e.g., by a user device. This pulling may occur when a user requests thefeed, as occurs in block 370. Thus, these actions may occur in adifferent order. The creation of the feed for a pull may be a dynamiccreation that identifies records being followed by the requesting user,generates the display version of relevant feed tracked updates fromstored information (e.g., event and field change), and adds the feedtracked updates into the feed. A feed of feed tracked updates of recordsand other objects that a user is following is also generally referred toherein as a news feed, which can be a subset of a larger informationfeed in which other types of information updates appear, such as posts.

In yet another implementation, the feed tracked update could be sent asan e-mail to the follower, instead of in a feed. In one implementation,e-mail alerts for events can enable people to be e-mailed when certainevents occur. In another implementation, e-mails can be sent when thereare posts on a user profile and posts on entities to which the usersubscribes. In one implementation, a user can turn on/off email alertsfor all or some events. In an implementation, a user can specify whatkind of feed tracked updates to receive about a record that the user isfollowing. For example, a user can choose to only receive feed trackedupdates about certain fields of a record that the user is following, andpotentially about what kind of update was performed (e.g., a new valueinput into a specified field, or the creation of a new field).

In block 370, a follower can access his/her news feed to see the feedtracked update. In one implementation, the user has just one news feedfor all of the records that the user is following. In one aspect, a usercan access his/her own feed by selecting a particular tab or otherobject on a page of an interface to the database system. Once selectedthe feed can be provided as a list, e.g., with an identifier (e.g., atime) or including some or all of the text of the feed tracked update.In another implementation, the user can specify how the feed trackedupdates are to be displayed and/or sent to the user. For example, a usercan specify a font for the text, a location of where the feed can beselected and displayed, amount of text to be displayed, and other textor symbols to be displayed (e.g., importance flags).

FIG. 4 shows a block diagram of an example of components of a databasesystem configuration 400 performing a method for tracking an update to arecord according to some implementations. Database system configuration400 can perform implementations of method 300, as well asimplementations of other methods described herein.

A first user 405 sends a request 1 to update record 425 in databasesystem 416. Although an update request is described, other events thatare being tracked are equally applicable. In various implementations,the request 1 can be sent via a user interface (e.g., 30 of FIG. 1B) oran application program interface (e.g., API 32). An I/O port 420 canaccommodate the signals of request 1 via any input interface, and sendthe signals to one or more processors 417. The processor 417 can analyzethe request and determine actions to be performed. Herein, any referenceto a processor 417 can refer to a specific processor or any set ofprocessors in database system 416, which can be collectively referred toas processor 417.

Processor 417 can determine an identifier for record 425, and sendcommands with the new data 2 of the request to record database 412 toupdate record 425. In one implementation, record database 412 is wheretenant data 112 of FIG. 1B is stored. The request 1 and new datacommands 2 can be encapsulated in a single write transaction sent torecord database 412. In one implementation, multiple changes to recordsin the database can be made in a single write transaction.

Processor 417 can also analyze request 1 to determine whether a feedtracked update is to be created, which at this point may includedetermining whether the event (e.g., a change to a particular field) isto be tracked. This determination can be based on an interaction (i.e.,an exchange of data) with record database 412 and/or other databases, orbased on information stored locally (e.g., in cache or RAM) at processor417. In one implementation, a list of record types that are beingtracked can be stored. The list may be different for each tenant, e.g.,as each tenant may configure the database system to its ownspecifications. Thus, if the record 425 is of a type not being tracked,then the determination of whether to create a feed tracked update canstop there.

The same list or a second list (which can be stored in a same locationor a different location) can also include the fields and/or events thatare tracked for the record types in the first list. This list can besearched to determine if the event is being tracked. A list may alsocontain information having the granularity of listing specific recordsthat are to be tracked (e.g., if a tenant can specify the particularrecords to be tracked, as opposed to just type).

As an example, processor 417 may obtain an identifier associated withrecord 425 (e.g., obtained from request 1 or database 412), potentiallyalong with a tenant identifier, and cross-reference the identifier witha list of records for which feed tracked updates are to be created.Specifically, the record identifier can be used to determine the recordtype and a list of tracked types can be searched for a match. Thespecific record may also be checked if such individual record trackingwas enabled. The name of the field to be changed can also be used tosearch a list of tracking-enabled fields. Other criteria besides fieldand events can be used to determine whether a feed tracked update iscreated, e.g., type of change in the field. If a feed tracked update isto be generated, processor 417 can then generate the feed trackedupdate.

In some implementations, a feed tracked update is created dynamicallywhen a feed (e.g., the entity feed of record 425) is requested. Thus, inone implementation, a feed tracked update can be created when a userrequests the entity feed for record 425. In this implementation, thefeed tracked update may be created (e.g., assembled), includingre-created, each time the entity feed is to be displayed to any user. Inone implementation, one or more hifeed tracked update tables can keeptrack of previous events so that the feed tracked update can bere-created.

In another implementation, a feed tracked update can be created at thetime the event occurs, and the feed tracked update can be added to alist of feed items. The list of feed items may be specific to record425, or may be an aggregate of feed items including feed items for manyrecords. Such an aggregate list can include a record identifier so thatthe feed items for the entity feed of record 425 can be easilyretrieved. For example, after the feed tracked update has beengenerated, processor 417 can add the new feed tracked update 3 to a feedof record 425. As mentioned above, in one implementation, the feed canbe stored in a field (e.g., as a child object) of record 425. In anotherimplementation, the feed can be stored in another location or in anotherdatabase, but with a link (e.g., a connecting identifier) to record 425.The feed can be organized in various ways, e.g., as a linked list, anarray, or other data structure.

A second user 430 can access the new feed tracked update 3 in variousways. In one implementation, second user 430 can send a request 4 forthe record feed. For example, second user 430 can access a home page(detail page) of the record 425 (e.g., with a query or by browsing), andthe feed can be obtained through a tab, button, or other activationobject on the page. The feed can be displayed on the screen ordownloaded.

In another implementation, processor 417 can add the new feed trackedupdate 5 to a feed (e.g., a news feed) of a user that is followingrecord 425. In one implementation, processor 417 can determine each ofthe followers of record 425 by accessing a list of the users that havebeen registered as followers. This determination can be done for eachnew event (e.g., update 1). In another implementation, processor 417 canpoll (e.g., with a query) the records that second user 430 is followingto determine when new feed tracked updates (or other feed items) areavailable. Processor 417 can use a follower profile 435 of second user430 that can contain a list of the records that the second user 430 isfollowing. Such a list can be contained in other parts of the databaseas well. Second user 430 can then send a request 6 to his/her profile435 to obtain a feed, which contains the new feed tracked update. Theuser's profile 435 can be stored in a profile database 414, which can bethe same or different than database 412.

In some implementations, a user can define a news feed to include newfeed tracked updates from various records, which may be limited to amaximum number. In one implementation, each user has one news feed. Inanother implementation, the follower profile 435 can include thespecifications of each of the records to be followed (with the criteriafor what feed tracked updates are to be provided and how they aredisplayed), as well as the feed.

Some implementations can provide various types of record (entity) feeds.Entity Feeds can exist for record types like account, opportunity, case,and contact. An entity feed can tell a user about the actions thatpeople have taken on that particular record or on one its relatedrecords. The entity feed can include who made the action, which fieldwas changed, and the old and new values. In one implementation, entityfeeds can exist on all supported records as a list that is linked to thespecific record. For example, a feed could be stored in a field thatallows lists (e.g., linked lists) or as a child object.

IV. Tracking Actions of a User

In addition to knowing about events associated with a particular record,it can be helpful for a user to know what a particular user is doing. Inparticular, it might be nice to know what the user is doing without theuser having to generate the feed tracked update (e.g., a user submittinga synopsis of what the user has done). Accordingly, implementations canautomatically track actions of a user that trigger events, and feedtracked updates can be generated for certain events.

FIG. 5 shows a flowchart of an example of a method 500 for trackingactions of a user of a database system, performed in accordance withsome implementations. Method 500 may be performed in addition to method300. The operations of method 300, including order of blocks, can beperformed in conjunction with method 500 and other methods describedherein. Thus, a feed can be composed of changes to a record and actionsof users.

In block 510, a database system (e.g., 16 of FIGS. 1A and 1B) identifiesan action of a first user. In one implementation, the action triggers anevent, and the event is identified. For example, the action of a userrequesting an update to a record can be identified, where the event isreceiving a request or is the resulting update of a record. The actionmay thus be defined by the resulting event. In another implementation,only certain types of actions (events) are identified. Which actions areidentified can be set as a default or can be configurable by a tenant,or even configurable at a user level. In this way, processing effort canbe reduced since only some actions are identified.

In block 520, it is determined whether the event qualifies for a feedtracked update. In one implementation, a predefined list of events(e.g., as mentioned herein) can be created so that only certain actionsare identified. In one implementation, an administrator (or other user)of a tenant can specify the type of actions (events) for which a feedtracked update is to be generated. This block may also be performed formethod 300.

In block 530, a feed tracked update is generated about the action. In anexample where the action is an update of a record, the feed trackedupdate can be similar or the same as the feed tracked update created forthe record. The description can be altered though to focus on the useras opposed to the record. For example, “John D. has closed a newopportunity for account XYZ” as opposed to “an opportunity has beenclosed for account XYZ.”

In block 540, the feed tracked update is added to a profile feed of thefirst user when, e.g., the user clicks on a tab to open a page in abrowser program displaying the feed. In one implementation, a feed for aparticular user can be accessed on a page of the user's profile, in asimilar manner as a record feed can be accessed on a detail page of therecord. In another implementation, the first user may not have a profilefeed and the feed tracked update may just be stored temporarily beforeproceeding. A profile feed of a user can be stored associated with theuser's profile. This profile feed can be added to a news feed of anotheruser.

In block 550, followers of the first user are identified. In oneimplementation, a user can specify which type of actions other users canfollow. Similarly, in one implementation, a follower can select whatactions by a user the follower wants to follow. In an implementationwhere different followers follow different types of actions, which usersare followers of that user and the particular action can be identified,e.g., using various lists that track what actions and criteria are beingfollowed by a particular user. In various implementations, the followersof the first user can be identified in a similar manner as followers ofa record, as described above for block 350.

In block 560, the feed tracked update is added to a news feed of eachfollower of the first user when, e.g., the follower clicks on a tab toopen a page displaying the news feed. The feed tracked update can beadded in a similar manner as the feed items for a record feed. The newsfeed can contain feed tracked updates both about users and records. Inanother implementation, a user can specify what kind of feed trackedupdates to receive about a user that the user is following. For example,a user could specify feed tracked updates with particular keywords, ofcertain types of records, of records owned or created by certain users,particular fields, and other criteria as mentioned herein.

In block 570, a follower accesses the news feed and sees the feedtracked update. In one implementation, the user has just one news feedfor all of the records that the user is following. In anotherimplementation, a user can access his/her own feed (i.e. feed abouthis/her own actions) by selecting a particular tab or other object on apage of an interface to the database system. Thus, a feed can includefeed tracked updates about what other users are doing in the databasesystem. When a user becomes aware of a relevant action of another user,the user can contact the co-worker, thereby fostering teamwork.

V. Generation of a Feed Tracked Update

As described above, some implementations can generate text describingevents (e.g., updates) that have occurred for a record and actions by auser that trigger an event. A database system can be configured togenerate the feed tracked updates for various events in various ways.

A. Which Events to generate a feed tracked update

In a database system, there are various events that can be detected.However, the operator of the database system and/or a tenant may notwant to detect every possible event as this could be costly with regardsto performance. Accordingly, the operator and/or the tenant canconfigure the database system to only detect certain events. Forexample, an update of a record may be an event that is to be detected.

Out of the events that are detected, a tenant (including a specific userof the tenant) may not want a feed tracked update about each detectedevent. For example, all updates to a record may be identified at a firstlevel. Then, based on specifications of an administrator and/or aspecific user of a tenant, another level of inquiry can be made as towhether a feed tracked update is to be generated about the detectedevent. For example, the events that qualify for a feed tracked updatecan be restricted to changes for only certain fields of the record, andcan differ depending on which user is receiving the feed. In oneimplementation, a database system can track whether an event qualifiesfor a feed tracked update for any user, and once the feed tracked updateis generated, it can be determined who is to receive the feed trackedupdate.

Supported events (events for which a feed tracked update is generated)can include actions for standard fields, custom fields, and standardrelated lists. Regarding standard fields, for the entity feed and theprofile feed, a standard field update can trigger a feed tracked updateto be published to that feed. In one implementation, which standardfield can create a feed tracked update can be set by an administrator tobe the same for every user. In another implementation, a user can setwhich standard fields create a feed tracked update for that user's newsfeed. Custom fields can be treated the same or differently than standardfields.

The generation of a feed item can also depend on a relationship of anobject to other objects (e.g., parent-child relationships). For example,if a child object is updated, a feed tracked update may be written to afeed of a parent of the child object. The level of relationship can beconfigured, e.g., only 1 level of separation (i.e. nograndparent-grandchild relationship). Also, in one implementation, afeed tracked update is generated only for objects above the objectsbeing updated, i.e., a feed tracked update is not written for a childwhen the parent is updated.

In some implementations, for related lists of a record, a feed trackedupdate is written to its parent record (1 level only) when the relatedlist item is added, and not when the list item is changed or deleted.For example: user A added a new opportunity XYZ for account ABC. In thismanner, entity feeds can be controlled so as not to be cluttered withfeed tracked updates about changes to their related items. Any changesto the related list item can be tracked on their own entity feed, ifthat related list item has a feed on it. In this implementation, if auser wants to see a feed of the related list item then the user cansubscribe to it. Such a subscription might be when a user cares about aspecific opportunity related to a specific account. A user can alsobrowse to that object's entity feed. Other implementations can create afeed tracked update when a related entity is changed or deleted.

In one implementation, an administrator (of the system or of a specifictenant) can define which events of which related objects are to havefeed tracked updates written about them in a parent record. In anotherimplementation, a user can define which related object events to show.In one implementation, there are two types of related lists of relatedobjects: first class lookup and second class lookup. Each of the recordsin the related lists can have a different rule for whether a feedtracked update is generated for a parent record. Each of these relatedlists can be composed as custom related lists. In variousimplementations, a custom related list can be composed of customobjects; the lists can contain a variety of records or items (e.g., notrestricted to a particular type of record or item), and can be displayedin a customized manner.

In one implementation, a first class lookup contains records of a childrecord that can exist by itself. For example, the contacts on an accountexist as a separate record and also as a child record of the account. Inanother implementation, a record in a first class lookup can have itsown feed, which can be displayed on its detail page.

In one implementation, a second class lookup can have line itemsexisting only in the context of their parent record (e.g., activities onan opportunity, contact roles on opportunity/contact). In oneimplementation, the line items are not objects themselves, and thusthere is no detail page, and no place to put a feed. In anotherimplementation, a change in a second class lookup can be reported on thefeed of the parent.

Some implementations can also create feed tracked updates for dependentfield changes. A dependent field change is a field that changes valuewhen another field changes, and thus the field has a value that isdependent on the value of the other field. For example, a dependentfield might be a sum (or other formula) that totals values in otherfields, and thus the dependent field would change when one of the fieldsbeing summed changes. Accordingly, in one implementation, a change inone field could create feed tracked updates for multiple fields. Inother implementations, feed tracked updates are not created fordependent fields.

B. How the Feed Tracked Update is Generated

After it is determined that a feed tracked update is going to begenerated, some implementations can also determine how the feed trackedupdate is generated. In one implementation, different methods can beused for different events, e.g., in a similar fashion as for theconfigurability of which events feed tracked updates are generated. Afeed tracked update can also include a description of multiple events(e.g., john changed the account status and amount).

In one implementation, the feed tracked update is a grammaticalsentence, thereby being easily understandable by a person. In anotherimplementation, the feed tracked update provides detailed informationabout the update. In various examples, an old value and new value for afield may be included in the feed tracked update, an action for theupdate may be provided (e.g., submitted for approval), and the names ofparticular users that are responsible for replying or acting on the feedtracked update may be also provided. The feed tracked update can alsohave a level of importance based on settings chosen by theadministrator, a particular user requesting an update, or by a followinguser who is to receive the feed tracked update, which fields is updated,a percentage of the change in a field, the type of event, or anycombination of these factors.

The system may have a set of heuristics for creating a feed trackedupdate from the event (e.g., a request to update). For example, thesubject may be the user, the record, or a field being added or changed.The verb can be based on the action requested by the user, which can beselected from a list of verbs (which may be provided as defaults orinput by an administrator of a tenant). In one implementation, feedtracked updates can be generic containers with formatting restrictions,

As an example of a feed tracked update for a creation of a new record,“Mark Abramowitz created a new Opportunity for IBM-20,000 laptops withAmount as $3.5 M and Sam Palmisano as Decision Maker.” This event can beposted to the profile feed for Mark Abramowitz and the entity feed forrecord of Opportunity for IBM-20,000 laptops. The pattern can be givenby (AgentFullName) created a new (ObjectName)(RecordName) with[(FieldName) as (FieldValue) [,/and]]*[[added/changed/removed](RelatedListRecordName) [as/to/as] (RelatedListRecordValue) [,/and]]*.Similar patterns can be formed for a changed field (standard or custom)and an added child record to a related list.

VI. Tracking Commentary from or about a User

Some implementations can also have a user submit text, instead of thedatabase system generating a feed tracked update. As the text issubmitted as part or all of a message by a user, the text can be aboutany topic. Thus, more information than just actions of a user and eventsof a record can be conveyed. In one implementation, the messages can beused to ask a question about a particular record, and users followingthe record can provide comments and responses.

FIG. 6 shows a flowchart of an example of a method 600 for creating anews feed from messages created by a user about a record or anotheruser, performed in accordance with some implementations. In oneimplementation, method 600 can be combined with methods 300 and 500. Inone aspect, a message can be associated with the first user when thefirst user creates the message (e.g., a post or comment about a recordor another user). In another aspect, a message can be associated withthe first user when the message is about the first user (e.g., posted byanother user on the first user's profile feed).

In block 610, the database system receives a message (e.g., a post orstatus update) associated with a first user. The message (e.g., a postor status update) can contain text and/or multimedia content submittedby another user or by the first user. In one implementation, a post isfor a section of the first user's profile page where any user can add apost, and where multiple posts can exist. Thus, a post can appear on thefirst user's profile page and can be viewed when the first user'sprofile is visited. For a message about a record, the post can appear ona detail page of a record. Note the message can appear in other feeds aswell. In another implementation, a status update about the first usercan only be added by the first user. In one implementation, a user canonly have one status message.

In block 620, the message is added to a table, as described in greaterdetail below. When the feed is opened, a query filters one or moretables to identify the first user, identify other persons that the useris following, and retrieve the message. Messages and record updates arepresented in a combined list as the feed. In this way, in oneimplementation, the message can be added to a profile feed of the firstuser, which is associated (e.g., as a related list) with the firstuser's profile. In one implementation, the posts are listedindefinitely. In another implementation, only the most recent posts(e.g., last 50) are kept in the profile feed. Such implementations canalso be employed with feed tracked updates. In yet anotherimplementation, the message can be added to a profile of the user addingthe message.

In block 630, the database system identifies followers of the firstuser. In one implementation, the database system can identify thefollowers as described above for method 500. In various implementations,a follower can select to follow a feed about the actions of the firstuser, messages about the first user, or both (potentially in a samefeed).

In block 640, the message is added to a news feed of each follower. Inone implementation, the message is only added to a news feed of aparticular follower if the message matches some criteria, e.g., themessage includes a particular keyword or other criteria. In anotherimplementation, a message can be deleted by the user who created themessage. In one implementation, once deleted by the author, the messageis deleted from all feeds to which the message had been added.

In block 650, the follower accesses a news feed and sees the message.For example, the follower can access a news feed on the follower's ownprofile page. As another example, the follower can have a news feed sentto his/her own desktop without having to first go to a home page.

In block 660, the database system receives a comment about the message.The database system can add the comment to a feed of the same firstuser, much as the original message was added. In one implementation, thecomment can also be added to a feed of a second user who added thecomment. In one implementation, users can also reply to the comment. Inanother implementation, users can add comments to a feed tracked update,and further comments can be associated with the feed tracked update. Inyet another implementation, making a comment or message is not an actionto which a feed tracked update is created. Thus, the message may be theonly feed item created from such an action.

In one implementation, if a feed tracked update or post is deleted, itscorresponding comments are deleted as well. In another implementation,new comments on a feed tracked update or post do not update the feedtracked update timestamp. Also, the feed tracked update or post cancontinue to be shown in a feed (profile feed, record feed, or news feed)if it has had a comment within a specified timeframe (e.g., within thelast week). Otherwise, the feed tracked update or post can be removed inan implementation.

In some implementations, all or most feed tracked updates can becommented on. In other implementations, feed tracked updates for certainrecords (e.g., cases or ideas) are not commentable. In variousimplementations, comments can be made for any one or more records ofopportunities, accounts, contacts, leads, and custom objects.

In block 670, the comment is added to a news feed of each follower. Inone implementation, a user can make the comment within the user's newsfeed. Such a comment can propagate to the appropriate profile feed orrecord feed, and then to the news feeds of the following users. Thus,feeds can include what people are saying, as well as what they aredoing. In one aspect, feeds are a way to stay up-to-date (e.g., onusers, opportunities, etc.) as well as an opportunity to reach out toco-workers/partners and engage them around common goals.

In some implementations, users can rate feed tracked updates or messages(including comments). A user can choose to prioritize a display of afeed so that higher rated feed items show up higher on a display. Forexample, in an implementation where comments are answers to a specificquestion, users can rate the different status posts so that a bestanswer can be identified. As another example, users are able to quicklyidentify feed items that are most important as those feed items can bedisplayed at a top of a list. The order of the feed items can be basedon an importance level (which can be determined by the database systemusing various factors, some of which are mentioned herein) and based ona rating from users. In one implementation, the rating is on a scalethat includes at least 3 values. In another implementation, the ratingis based on a binary scale.

Besides a profile for a user, a group can also be created. In variousimplementations, the group can be created based on certain criteria thatare common to the users, can be created by inviting users, or can becreated by receiving requests to join from a user. In oneimplementation, a group feed can be created, with messages being addedto the group feed when someone adds a message to the group as a whole.For example, a group page may have a section for posts. In anotherimplementation, a message can be added to a group feed when a message isadded about any one of the members. In yet another implementation, agroup feed can include feed tracked updates about actions of the groupas a whole (e.g., when an administrator changes data in a group profileor a record owned by the group), or about actions of an individualmember.

FIG. 7 shows an example of a group feed on a group page according tosome implementations. As shown, a feed item 710 shows that a user hasposted a document to the group object. The text “Bill Bauer has postedthe document Competitive Insights” can be generated by the databasesystem in a similar manner as feed tracked updates about a record beingchanged. A feed item 720 shows a post to the group, along with comments730 from Ella Johnson, James Saxon, Mary Moore and Bill Bauer.

FIG. 8 shows an example of a record feed containing a feed trackedupdate, post, and comments according to some implementations. Feed item810 shows a feed tracked update based on the event of submitting adiscount for approval. Other feed items show posts, e.g., from BillBauer, that are made to the record and comments, e.g., from Erica Lawand Jake Rapp, that are made on the posts.

VII. Infrastructure for a Feed

A. Tables Used to Create a Feed

FIG. 9A shows an example of a plurality of tables that may be used intracking events and creating feeds according to some implementations.The tables of FIG. 9A may have entries added, or potentially removed, aspart of tracking events in the database from which feed items arecreates or that correspond to feed items. In one implementation, eachtenant has its own set of tables that are created based on criteriaprovided by the tenant.

An event hifeed tracked update table 910 can provide a hifeed trackedupdate of events from which feed items are created. In one aspect, theevents are for objects that are being tracked. Thus, table 910 can storeand change hifeed tracked updates for feeds, and the changes can bepersisted. In various implementations, event hifeed tracked update table910 can have columns of event ID 911, object ID 912 (also called parentID), and created by ID 913. The event ID 911 can uniquely identify aparticular event and can start at 1 (or other number or value).

Each new event can be added chronologically with a new event ID, whichmay be incremented in order. An object ID 912 can be used to track whichrecord or user's profile is being changed. For example, the object IDcan correspond to the record whose field is being changed or the userwhose feed is receiving a post. The created by ID 913 can track the userwho is performing the action that results in the event, e.g., the userthat is changing the field or that is posting a message to the profileof another user.

In some other implementations, event hifeed tracked update table 910 canhave one or more of the following variables with certain attributes:ORGANIZATION_ID being CHAR(15 BYTE), FEEDS_ENTITY_HIFEED TRACKEDUPDATE_ID being CHAR(15 BYTE), PARENT_ID being CHAR(15 BYTE), CREATED_BYbeing CHAR(15 BYTE), CREATED_DATE being a variable of type DATE,DIVISION being a NUMBER, KEY_PREFIX being CHAR(3 BYTE), and DELETEDbeing CHAR(1 BYTE). The parent ID can provide an ID of a parent objectin case the change is promulgated to the parent. The key prefix canprovide a key that is unique to a group of records, e.g., custom records(objects). The deleted variable can indicate that the feed items for theevent are deleted, and thus the feed items are not generated. In oneimplementation, the variables for each event entry or any entry in anyof the tables may not be nullable. In another implementation, allentries in the event hifeed tracked update table 910 are used to createfeed items for only one object, as specified by the object ID 912. Forexample, one feed tracked update cannot communicate updates on tworecords, such as updates of an account field and an opportunity field.

In one implementation, a name of an event can also be stored in table910. In one implementation, a tenant can specify events that they wanttracked. In an implementation, event hifeed tracked update table 910 caninclude the name of the field that changed (e.g., old and new values).In another implementation, the name of the field, and the values, arestored in a separate table. Other information about an event (e.g., textof comment, feed tracked update, post or status update) can be stored inevent hifeed tracked update table 910, or in other tables, as is nowdescribed.

A field change table 920 can provide a hifeed tracked update of thechanges to the fields. The columns of table 920 can include an event ID921 (which correlates to the event ID 911), an old value 922 for thefield, and the new value 923 for the field. In one implementation, if anevent changes more than one field value, then there can be an entry foreach field changed. As shown, event ID 921 has two entries for eventE37.

In some other implementations, field change table 920 can have one ormore of the following variables with certain attributes: ORGANIZATION_IDbeing CHAR(15 BYTE), FEEDS_ENTITY_HIFEED TRACKED UPDATE_FIELDS_ID beingCHAR(15 BYTE) and identifying each entry, FEEDS_ENTITY_HIFEED TRACKEDUPDATE_ID being CHAR(15 BYTE), FIELD_KEY being VARCHAR2(120 BYTE),DATA_TYPE being CHAR(1 BYTE), OLDVAL_STRING VARCHAR2 being (765 BYTE),NEWVAL_STRING being VARCHAR2(765 BYTE), OLDVAL_FIRST_NAME beingVARCHAR2(765 BYTE), NEWVAL_FIRST_NAME being VARCHAR2(765 BYTE),OLDVAL_LAST_NAME being VARCHAR2(765 BYTE), NEWVAL_LAST_NAME beingVARCHAR2(765 BYTE), OLDVAL_NUMBER being NUMBER, NEWVAL_NUMBER beingNUMBER, OLDVAL_DATE being DATE, NEWVAL_DATE being DATE, and DELETEDbeing CHAR(1 BYTE). In one implementation, one or more of the variablesfor each entry in any of the tables may be nullable.

In one implementation, the data type variable (and/or other variables)is a non-api-insertable field. In another implementation, variablevalues can be derived from the record whose field is being changed.Certain values can be transferred into typed columns old/new valuestring, old/new value number or old/new value date depending upon thederived values. In another implementation, there can exist a data typefor capturing add/deletes for child objects. The child ID can be trackedin the foreign-key column of the record. In yet another implementation,if the field name is pointing to a field in the parent entity, a fieldlevel security (FLS) can be used when a user attempts to a view arelevant feed item. Herein, security levels for objects and fields arealso called access checks and determinations of authorization. In oneaspect, the access can be for create, read, write, update, or delete ofobjects.

In one implementation, the field name (or key) can be either a fieldname of the entity or one of the values in a separate list. For example,changes that do not involve the update of an existing field (e.g., aclose or open) can have a field name specified in an enumerated list.This enumerated list can store “special” field name sentinel values fornon-update actions that a tenant wants to track. In one aspect, the APIjust surfaces these values and the caller has to check the enumeratedvalues to see if it is a special field name.

A comment table 930 can provide a hifeed tracked update of the commentsmade regarding an event, e.g., a comment on a post or a change of afield value. The columns of table 930 can include an event ID 921 (whichcorrelates to the event ID 911), the comment column 932 that stores thetext of the comment, and the time/date 933 of the comment. In oneimplementation, there can be multiple comments for each event. As shown,event ID 921 has two entries for event E37.

In some other implementations, comment table 930 can have one or more ofthe following variables with certain attributes: ORGANIZATION_JD beingCHAR(15 BYTE), FEEDS_COMMENTS_ID being CHAR(15 BYTE) and uniquelyidentifying each comment, PARENT_ID being CHAR(15 BYTE), CREATED_BYbeing CHAR(15 BYTE), CREATED_DATE being DATE, COMMENTS beingVARCHAR2(420 BYTE), and DELETED being CHAR(1 BYTE).

A user subscription table 940 can provide a list of the objects beingfollowed (subscribed to) by a user. In one implementation, each entryhas a user ID 941 of the user doing the following and one object ID 942corresponding to the object being followed. In one implementation, theobject being followed can be a record or a user. As shown, the user withID U819 is following object IDs O615 and O489. If user U819 is followingother objects, then additional entries may exist for user U819. Also asshown, user U719 is also following object O615. The user subscriptiontable 940 can be updated when a user adds or deletes an object that isbeing followed.

In some other implementations, comment table 940 can be composed of twotables (one for records being followed and one for users beingfollowed). One table can have one or more of the following variableswith certain attributes: ORGANIZATION_ID being CHAR(15 BYTE),ENTITY_SUBSCRIPTION_ID being CHAR(15 BYTE), PARENT_ID being CHAR(15BYTE), CREATED_BY being CHAR(15 BYTE), CREATED_DATE being DATE, andDELETED being CHAR(1 BYTE). Another table can have one or more of thefollowing variables with certain attributes: ORGANIZATION_ID beingCHAR(15 BYTE), USER_SUBSCRIPTIONS_ID being CHAR(15 BYTE), USER_ID beingCHAR(15 BYTE), CREATED_BY being CHAR(15 BYTE), and CREATED_DATE beingDATE.

In one implementation, regarding a profile feed and a news feed, theseare read-only views on the event hifeed tracked update table 910specialized for these feed types. Conceptually the news feed can be asemi-join between the entity subscriptions table 940 and the eventhifeed tracked update table 910 on the object IDs 912 and 942 for theuser. In one aspect, these entities can have polymorphic parents and canbe subject to a number of restrictions detailed herein, e.g., to limitthe cost of sharing checks.

In one implementation, entity feeds are modeled in the API as a feedassociate entity (e.g., AccountFeed, CaseFeed, etc). A feed associateentity includes information composed of events (e.g., event IDs) foronly one particular record type. Such a list can limit the query (andsharing checks) to a specific record type. In one aspect, thisstructuring of the entity feeds can make the query run faster. Forexample, a request for a feed of a particular account can include therecord type of account. In one implementation, an account feed table canthen be searched, where the table has account record IDs andcorresponding event IDs or pointers to particular event entries in eventhifeed tracked update table 910. Since the account feed table onlycontains some of the records (not all), the query can run faster.

In one implementation, there may be objects with no events listed in theevent hifeed tracked update table 910, even though the record is beingtracked. In this case, the database service can return a resultindicating that no feed items exist.

In another implementation, tables can also exist for audit tracking,e.g., to examine that operations of the system (e.g., access checks) areperforming accurately. In one implementation, audit change-hifeedtracked update tables can be persisted (e.g., in bulk) synchronously inthe same transaction as feed events are added to event hifeed trackedupdate table 910. In another implementation, entries to the two sets oftable can be persisted in asynchronous manner (e.g., by forking a bulkupdate into a separate java thread). In one aspect, some updates to anyof the tables can get lost if the instance of the table goes down whilethe update has not yet finished. This asynchronous manner can limit animpact performance on save operations. In some implementations, a field“persistence type” (tri state: AUDIT, FEEDS or BOTH) can be added tocapture user preferences, as opposed to being hard coded.

B. Feed Item

A feed item can represent an individual field change of a record,creation and deletion of a record, or other events being tracked for arecord or a user. In one implementation, all of the feed items in asingle transaction (event) can be grouped together and have the sameevent ID. A single transaction relates to the operations that can beperformed in a single communication with the database. In anotherimplementation where a feed is an object of the database, a feed itemcan be a child of a profile feed, news feed, or entity feed. If a feeditem is added to multiple feeds, the feed item can be replicated as achild of each feed to which the feed item is added.

In one implementation, a feed item is visible only when its parent feedis visible, which can be the same as needing read access on the feed'sparent (which can be by the type of record or by a specific record). Thefeed item's field may be only visible when allowed under field-levelsecurity (FLS). Unfortunately, this can mean that the parent feed may bevisible, but the child may not be because of FLS. Such access rules aredescribed in more detail below. In one implementation, a feed item canbe read-only. In this implementation, after being created, the feed itemcannot be changed.

In multi-currency organizations, a feed item can have an extra currencycode field. This field can give the currency code for the currency valuein this field. In one aspect, the value is undefined when the data typeis anything other than currency.

C. Feed Comment

In some implementations, a comment exists as an item that depends fromfeed tracked updates, posts, status updates, and other items that areindependent of each other. Thus, a feed comment object can exist as achild object of a feed item object. For example, comment table 930 canbe considered a child table of event hifeed tracked update table 910. Inone implementation, a feed comment can be a child of a profile feed,news feed, or entity feed that is separate from other feed items.

In various implementations, a feed comment can have various permissionsfor the following actions. For read permission, a feed comment can bevisible if the parent feed is visible. For create permission, if a userhas access to the feed (which can be tracked by the ID of the parentfeed), the user can add a comment. For delete, only a user with modifyall data permission or a user who added the comment can delete thecomment. Also delete permission can require access on the parent feed.An update of a comment can be restricted, and thus not be allowed.

In one implementation, regarding a query restriction, a feed commentcannot be queried directly, but can be queried only via the parent feed.An example is “select id, parentid, (select . . . from feedcomment) fromentityfeed.” In another implementation, a feed comment can be directlyqueries, e.g., by querying comment table 930. A query could include thetext of a comment or any other column of the table.

In another implementation, regarding soft delete behavior, a feedcomment table does not have a soft delete column. A soft delete allowsan undelete action. In one implementation, a record can have a softdelete. Thus, when the record is deleted, the feed (and its children)can be soft deleted. Therefore, in one aspect, a feed comment cannot beretrieved via the “query” verb (which would retrieve only the comment),but can be retrieved via “queryAll” verb though. An example isqueryAll(“select id, (select id, commentbody from feedcomments) fromaccountfeed where parentid=‘001x000xxx3MkADAA0’”); // where‘001x000xxx3MkADAA0’ has been soft deleted. When a hard delete (aphysical delete) happens, the comment can be hard deleted from thedatabase.

In one implementation, regarding an implicit delete, feeds with commentsare not deleted by a reaper (a routine that performs deletion). Inanother implementation, a user cannot delete a feed. In yet anotherimplementation, upon lead convert (e.g., to an opportunity or contact),the feed items of the lead can be hard deleted. This implementation canbe configured to perform such a deletion for any change in record type.In various implementations, only the comments are hard deleted upon alead convert, other convert, or when the object is deleted (as mentionedabove).

In one implementation, viewing a feed pulls up the most recent messagesor feed tracked updates (e.g., 25) and searches the most recent (e.g.,4) comments for each feed item. The comments can be identified via thecomment table 930. In one implementation, a user can request to see morecomments, e.g., by selecting a see more link.

In some implementations, user feeds and/or entity feeds have a lastcomment date field. In various implementations, the last comment datefield is stored as a field of a record or a user profile. For feeds withno comments, this can be the same as the created date. Whenever a newcomment is created, the associated feed's last comment date can beupdated with the created date of the comment. The last comment date isunchanged if a feed comment is deleted. A use case is to allow people toorder their queries to see the feeds, which have been most recentlycommented on.

D. Creating Custom Feeds by Customizing the Event Hifeed Tracked UpdateTable

In some implementations, a tenant (e.g., through an administrator) or aspecific user of a tenant can specify the types of events for which feeditems are created. A user can add more events or remove events from alist of events that get added to the event hifeed tracked update table910. In one implementation, a trigger can be added as a piece of code,rule, or item on a list for adding a custom event to the event hifeedtracked update table 910. These custom events can provide customers theability to create their own custom feeds and custom feed items toaugment or replace implicitly generated feeds via event hifeed trackedupdate table 910. Implicitly generated feed data can be created whenfeed-tracking is enabled for certain entities/field-names. In oneimplementation, in order to override implicit feeds, feed tracking canbe turned off and then triggers can be defined by the user to add eventsto the event hifeed tracked update table 910. In other implementations,users are not allowed to override the default list of events that areadded to table 910, and thus cannot define their own triggers for havingevents tracked.

For example, upon lead convert or case close, a default action to betaken by the system may be to add multiple events to event hifeedtracked update table 910. If a customer (e.g., a tenant or a specificuser) does not want each of these events to show up as feed items, thecustomer can turn off tracking for the entities and generate customfeeds by defining customized triggers (e.g., by using an API) upon theevents. As another example, although data is not changed, a customer maystill want to track an action on a record (e.g., status changes if notalready being tracked, views by certain people, retrieval of data,etc.).

In one implementation, if a user does not want a feed item to begenerated upon every change on a given field, but only if the changeexceeds a certain threshold or range, then such custom feeds can beconditionally generated with the customized triggers. In oneimplementation, the default tracking for the record or user may beturned off for this customization so that the events are onlyconditionally tracked. In another implementation, a trigger can bedefined that deletes events that are not desired, so that defaulttracking can still be turned on for a particular object type. Suchconditional tracking can be used for other events as well.

In some implementations, defining triggers to track certain events canbe done as follows. A user can define an object type to track. Thisobject type can be added to a list of objects that can be tracked for aparticular tenant. The tenant can remove object types from this list aswell. Custom objects and standard objects can be on the list, which may,for example, be stored in cache or RAM of a server or in the database.Generally only one such list exists for a tenant, and users do not haveindividual lists for themselves, although in some implementations, theymay particularly when the number of users in a tenant is small.

In one implementation, a tenant can select which records of an objecttype are to be tracked. In another implementation, once an object typeis added to the tracking list of object types, then all records of thattype are tracked. The tenant can then specify the particulars of how thetracking is to be performed. For example, the tenant can specifytriggers as described above, fields to be tracked, or any of thecustomizations mentioned herein.

In some implementations, when a feed is defined as an object in thedatabase (e.g., as a child object of entity records that can betracked), a particular instance of the feed object (e.g., for aparticular record) can be create-able and delete-able. In oneimplementation, if a user has access to a record then the user cancustomize the feed for the record. In one implementation, a record maybe locked to prevent customization of its feed.

One method of creating a custom feed for users of a database systemaccording to implementations is now described. Any of the followingblocks can be performed wholly or partially with the database system,and in particular by one or more processor of the database system.

In block A, one or more criteria specifying which events are to betracked for possible inclusion into a feed to be displayed are receivedfrom a tenant. In block B, data indicative of an event is received. Inblock C, the event is analyzed to determine if the criteria aresatisfied. In block D, if the criteria are satisfied, at least a portionof the data is added to a table (e.g., one or more of the tables in FIG.9A) that tracks events for inclusion into at least one feed for a userof the tenant. The feed in which feed items of an event may ultimatelybe displayed can be a news feed, record feed, or a profile feed.

E. Creating Custom Feeds with Filtering

After feed items have been generated, they can be filtered so that onlycertain feed items are displayed, which may be tailored to a specifictenant and/or user. In one implementation, a user can specify changes toa field that meet certain criteria for the feed item to show up in afeed displayed to the user, e.g., a news feed or even an entity feeddisplayed directly to the user. In one implementation, the criteria canbe combined with other factors (e.g., number of feed items in the feed)to determine which feed items to display. For instance, if a smallnumber of feed items exist (e.g., below a threshold), then all of thefeed items may be displayed.

In one implementation, a user can specify the criteria via a query onthe feed items in his/her new feed, and thus a feed may only returnobjects of a certain type, certain types of events, feed tracked updatesabout certain fields, and other criteria mentioned herein. Messages canalso be filtered according to some criteria, which may be specified in aquery. Such an added query can be added onto a standard query that isused to create the news feed for a user. A first user could specify theusers and records that the first user is following in this manner, aswell as identify the specific feed items that the first user wants tofollow. The query could be created through a graphical interface oradded by a user directly in a query language. Other criteria couldinclude receiving only posts directed to a particular user or record, asopposed to other feed items.

In one implementation, the filters can be run by defining code triggers,which run when an event, specific or otherwise, occurs. The triggercould then run to perform the filtering at the time the event occurs orwhen a user (who has certain defined triggers, that is configured for aparticular user) requests a display of the feed. A trigger could searchfor certain terms (e.g., vulgar language) and then remove such terms ornot create the feed item. A trigger can also be used to send the feeditem to a particular person (e.g., an administrator) who does notnormally receive the feed item were it not for the feed item containingthe flagged terms.

F. Access Checks

In one implementation, a user can access a feed of a record if the usercan access the record. The security rules for determining whether a userhas access to a record can be performed in a variety of ways, some ofwhich are described in U.S. patent application Ser. No. 11/866,184 byWeissman et al., filed Oct. 2, 2007, titled “METHODS AND SYSTEMS FORCONTROLLING ACCESS TO CUSTOM OBJECTS IN A DATABASE”, which is herebyincorporated by reference in its entirety and for all purposes. Forexample, a security level table can specify whether a user can see aparticular type of record and/or particular records. In oneimplementation, a hierarchy of positions within a tenant is used. Forexample, a manager can inherit the access levels of employees that themanager supervises. Field level security (FLS) can also be used todetermine whether a particular feed tracked update about an update to afield can be seen by the user. The field change table 920 can be used toidentify a field name or field ID, and then whether the user has readaccess to that field can be determined from an FLS table. For example,if a user could not see a field of a social security number, the feed ofthe user provided to the user would not include any feed items relatedto the social security number field.

In one implementation, a user can edit a feed of a record if the userhas access to the record, e.g., deleting or editing a feed item. Inanother implementation, a user (besides an administrator) cannot edit afeed item, except for performing an action from which a feed item can becreated. In one implementation, a user is required to have access to aparticular record and field for a feed item to be created based on anaction of the user. In this case, an administrator can be considered tobe a user with MODIFY-ALL-DATA security level. In yet anotherimplementation, a user who created the record can edit the feed.

G. Posts

In one implementation, the text of posts are stored in a child table(post table 950), which can be cross-referenced with event hifeedtracked update table 910. Post table 950 can include event ID 951 (tocross-reference with event ID 911), post text 952 to store the text ofthe post, and time/date 953. An entry in post table 950 can beconsidered a feed post object. Posts for a record can also be subject toaccess checks. In one implementation, if a user can view a record thenall of the posts can be seen, i.e. there is not an additional level ofsecurity check as there is for FLS. In another implementation, anadditional security check could be done, e.g., by checking on whethercertain keywords (or phrases) exist in the post. For instance, a postmay not be not provided to specified users if a certain keyword exists,or only provided to specified users if a keyword exists. In anotherimplementation, a table can exist for status updates.

VIII. Subscribing to Users and Records to Follow

As described above, a user can follow users, groups, and records.Implementations can provide mechanisms for a user to manage which users,groups, and records that the user is currently following. In oneimplementation, a user can be limited to the number of users and records(collectively or separately) that the user can follow. For example, auser may be restricted to only following 10 users and 15 records, or asanother example, 25 total. Alternatively, the user may be permitted tofollow more or less users.

In one implementation, a user can go to a page of a record and thenselect to follow that object (e.g., with a button marked “follow” or“join”). In another implementation, a user can search for a record andhave the matching records show up in a list. The search can includecriteria of records that the user might want to follow. Such criteriacan include the owner, the creation date, last comment date, andnumerical values of particular fields (e.g., an opportunity with a valueof more than $10,000).

A follow button (or other activation object) can then reside next toeach record in the resulting list, and the follow button can be selectedto start following the record. Similarly, a user can go to a profilepage of a user and select to follow the user, or a search for users canprovide a list, where one or more users can be selected for followingfrom the list. The selections of subscribing and unsubscribing can addand delete rows in table 920.

In some implementations, a subscription center acts as a centralizedplace in a database application (e.g., application platform 18) tomanage which records a user subscribes to, and which field updates theuser wants to see in feed tracked updates. The subscription center canuse a subscription table to keep track of the subscriptions of varioususers. In one implementation, the subscription center shows a list ofall the items (users and records) a user is subscribed to. In anotherimplementation, a user can unsubscribe to subscribed objects from thesubscription center.

A. Automatic Subscription

In one implementation, an automatic subscription feature can ensure thata user is receiving certain feeds. In this manner, a user does not haveto actively select certain objects to follow. Also, a tenant can ensurethat a user is following objects that the user needs to be following.

In various implementations for automatically following users, a defaultfor small organizations can be to follow everyone. For bigorganizations, the default can be to follow a manager and peers. If auser is a manager, the default can be to follow the manager'ssupervisor, peers, and people that the manager supervises(subordinates). In other implementations for automatically followingrecords, records that the user owns may be automatically followed and/orrecords recently viewed (or changed) may be automatically followed.

In one example, a new record is created. The owner (not necessarily theuser who created the entity) is subscribed to the entity. If ownershipis changed, the new owner may automatically be subscribed to follow theentity. Also, after a lead convert, the user doing the lead convert maybe automatically subscribed to the new account, opportunity, or contactresulting from the lead convert. In one implementation, the autosubscription is controlled by user preference. That is a user or tenantcan have the auto subscribe feature enabled or not. In one aspect, thedefault is to have the auto-subscribe turned on.

FIG. 9B shows a flowchart of an example of a method 900 forautomatically subscribing a user to an object in a database system,performed in accordance with some implementations. Any of the followingblocks can be performed wholly or partially with the database system,and in particular by one or more processor of the database system.

In block 901, one or more properties of an object stored in the databasesystem are received. The properties can be received from administratorsof the database system, or from users of the database system (which maybe an administrator of a customer organization). The properties can berecords or users, and can include any of the fields of the object thatare stored in the database system. Examples of properties of a recordinclude: an owner of the record, a user that converted the record fromone record type to another record type, whether the first user hasviewed the record, and a time the first user viewed the record. Examplesof properties of a user include: which organization (tenant) the user isassociated with, the second user's position in the same organization,and which other users the user had e-mailed or worked with on projects.

In block 902, the database system receives one or more criteria aboutwhich users are to automatically follow the object. The criteria can bereceived from administrators of the database system, or from one or moreusers of the database system. The users may be an administrator of acustomer organization, which can set tenant-wide criteria or criteriafor specific users (who may also set the criteria themselves). Examplesof the criteria can include: an owner or creator of a record is tofollow the record, subordinates of an owner or creator of a record areto follow the record, a user is to follow records recently viewed(potentially after a specific number of views), records that a user haschanged values (potentially with a date requirement), records created byothers in a same business group as the user. Examples of the criteriacan also include: a user is to follow his/her manager, the user's peers,other users in the same business group as the user, and other users thatthe user has e-mailed or worked with on a project. The criteria can bespecific to a user or group of users (e.g., users of a tenant).

In block 903, the database system determines whether the one or moreproperties of the object satisfy the one or more criteria for a firstuser. In one implementation, this determination can occur by firstobtaining the criteria and then determining objects that satisfy thecriteria. The determination can occur periodically, at time of creationof an object, or at other times. If different users have differentcriteria, then the criteria for a particular user or group could besearched at the same time. Since users of different tenants normallycannot view objects of another tenant, certain criteria does not have tobe checked. In another implementation, this determination can occur bylooking at certain properties and then identifying any criteria that aremet. In yet another implementation, the criteria and properties can beused to find users that satisfy the criteria.

In block 904, if the criteria are satisfied, the object is associatedwith the first user. The association can be in a list that storesinformation as to what objects are being followed by the first user.User subscription table 940 is an example of such a list. In oneimplementation, the one or more criteria are satisfied if one propertysatisfies at least one criterion. Thus, if the criteria are that a userfollows his/her manager and the object is the user's manager, then thefirst user will follow the object.

In one implementation, a user can also be automatically unsubscribed,e.g., if a certain action happens. The action could be a change in theuser's position within the organization, e.g., a demotion or becoming acontractor. As another example, if a case gets closed, then usersfollowing the case may be automatically unsubscribed.

B. Feed and Subscription API

In one implementation, a feed and subscription center API can enabletenants to provide mechanisms for tracking and creating feed items,e.g., as described above for creating custom feeds by allowing users toadd custom events for tracking. For example, after some initial feeditems are created (e.g., by administrators of the database system),outside groups (e.g., tenants or software providers selling software tothe tenants) can ‘enable objects’ for feeds through a standard API. Thegroups can then integrate into the subscription center and the feedtracked update feeds on their own. In one implementation, the feed andsubscription center API can use a graphical user interface implementedfor the default feed tracking. In one implementation. API examplesinclude subscribing to an entity by creating a new entity subscriptionobject for a particular user ID, or for all users of a tenant (e.g.,user subscription table 940). In one implementation, obtaining allsubscriptions for a given user can be performed by using a query, suchas “select . . . from EntitySubscription where userid=‘ . . . ’”.

Some implementations have restriction on non-admin users, e.g., thosewithout view all data permissions (VAD). One restriction can be a limitclause on entity subscription queries (e.g., queries on usersubscription table 940), e.g., where the limit of the number ofoperations is less than 100. In one implementation, users are notrequired to specify an order-by, but if an order-by is specified theycan only order on fields on the entity subscription entity. In oneimplementation, filters on entity subscription can likewise only specifyfields on the entity subscription entity. In one aspect, the object IDbeing followed can be sorted or filtered, but not the object name.

In one implementation, one or more restrictions can also be placed onthe identification of feed items in a feed that a user can access. Forexample, if a low-level user (i.e. user can access few objects) isattempting to see a profile feed of a high level user, a maximum numberof checks (e.g., 500) for access rights may be allowed. Such arestriction can minimize a cost of a feed request. In someimplementations, there are restriction on the type of queries (e.g.,fields for filtering) allowed to construct on feeds (e.g., on tables inFIG. 9A).

C. Sharing

As mentioned above, users may be restricted from seeing records fromother tenants, as well as certain records from the tenant to which theuser belongs (e.g., the user's employer). Sharing rules can refer to theaccess rules that restrict a user from seeing records that the user isnot authorized to see or access. Additionally, in one implementation, auser may be restricted to only seeing certain fields of a record,field-level security (FLS).

In an implementation, access rule checks are done upon subscription. Forexample, a user is not allowed to subscribe to a record or type ofrecord that the user cannot access. In one aspect, this can minimize(but not necessarily eliminate) cases where a user subscribes toentities they cannot access. Such cases can slow down news feed queries,when an access check is performed (which can end up removing much of thefeed items). Thus, a minimization of access checks can speed upoperation. In another implementation, when feed items are createddynamically, access rule checks may be done dynamically at the time ofsubsequent access, and not upon subscription or in addition to at timeof subscription.

An example case where access checks are still performed is when a firstuser follows a second user, but the second user performs some actions onrecords or is following records that the first user is not allowed tosee. The first user may be allowed to follow the second user, and thusthe subscription is valid even though the first user may not be able tosee all of the feed items. Before a feed tracked update is provided to anews feed of the first user, a security check may be performed tovalidate whether the first user has access rights to the feed item. Ifnot, the feed item is not displayed to the first user. In oneimplementation, users can be blocked from feed items that containcertain terms, symbols, account numbers, etc. In one implementation, anyuser can follow another user. In another implementation, users may berestricted as to which users, objects, and/or records he/she can follow.

Regarding viewing privileges of a feed, in one implementation, a usercan always see all of his own subscriptions (even if he's lost readaccess to a record). For example, a user can become a contractor, andthen the user may lose access to some records. But, the user may stillsee that he/she is following the object. This can help if there is alimit to the number of objects that can be followed. To unsubscribe auser may need to know what they are following so they can unsubscribeand subscribe to objects the user can see. In another implementation,for access to other people's subscriptions, a user can be required toneed read-access on the record-id to see the subscription. In someimplementations, users with authorization to modify all data cancreate/delete any subscription. In other implementations, a user cancreate/delete subscriptions only for that user, and not anyone else.

D. Configuration of which Field to Follow

There can be various feed settings for which feed items get added toprofile and record feeds, and which get added to news feeds. In oneimplementation, for profile feeds and entity feeds, feed tracked updatescan be written for all standard and custom fields on the supportedobjects. In one implementation, feed settings can be set to limit howmany and which fields of a record are tracked for determining whether afeed tracked update is to be generated. For example, a user oradministrator can choose specific fields to track and/or certain onesnot to track. In another implementation, there is a separate limit forthe number of trackable fields (e.g., 20) for a record. Thus, onlycertain changes may be tracked in an entity hifeed tracked update andshow up in the feed. In yet another implementation, default fields maybe chosen for tracking, where the defaults can be exposed in thesubscriptions center.

IX. Adding Items to a Feed

As described above, a feed includes feed items, which include feedtracked updates and messages, as defined herein. Various feeds can begenerated. For example, a feed can be generated about a record or abouta user. Then, users can view these feeds. A user can separately view afeed of a record or user, e.g., by going to a home page for the user orthe record. As described above, a user can also follow another user orrecord and receive the feed items of those feeds through a separate feedapplication (e.g., in a page or window), which is termed “chatter” incertain examples. The feed application can provide each of the feedsthat a user is following and, in some examples, can combine variousfeeds in a single information feed.

A feed generator can refer to any software program running on aprocessor or a dedicated processor (or combination thereof) that cangenerate feed items (e.g., feed tracked updates or messages) and combinethem into a feed. In one implementation, the feed generator can generatea feed item by receiving a feed tracked update or message, identifyingwhat feeds the item should be added to, and adding the feed. Adding thefeed can include adding additional information (metadata) to the feedtracked update or message (e.g., adding a document, sender of message, adetermined importance, etc.). The feed generator can also check to makesure that no one sees feed tracked updates for data that they don't haveaccess to see (e.g., according to sharing rules). A feed generator canrun at various times to pre-compute feeds or to compute themdynamically, or combinations thereof.

In one implementation, the feed generator can de-dupe events (i.e.prevent duplicates) that may come in from numerous records (and users).For example, since a feed tracked update can be published to multiplefeeds (e.g., John Choe changed the Starbucks Account Status) and aperson can be subscribed to both the Starbucks account and John Choe,implementations can filter out duplicates before adding or displayingthe items in a news feed. Thus, the Feed Generator can collapse eventswith multiple records and users for a single transaction into a singlefeed tracked update and ensure the right number of feed tracked updatesfor the particular feed. In some implementations, an action by a userdoes not create a feed item for that user (e.g., for a profile feed ofthat user), and it is only the feed of the object being acted upon(e.g., updated) for which a feed item is created. Thus, there should notbe duplicates. For example, if someone updates the status of a record,the feed item is only for the record and not the user.

In one implementation, processor 417 in FIG. 4 can identify an eventthat meets criteria for a feed tracked update, and then generate thefeed tracked update. Processor 417 can also identify a message. Forexample, an application interface can have certain mechanisms forsubmitting a message (e.g., “submit” buttons on a profile page, detailpage of a record, “comment” button on post), and use of these mechanismscan be used to identify a message to be added to a table used to createa feed or added directly to a list of feed items ready for display.

A. Adding Items to a Pre-Computed Feed

In some implementations, a feed of feed items is created before a userrequests the feed. Such an implementation can run fast, but have highoverall costs for storage. In one implementation, once a profile feed ora record feed has been created, a feed item (messages and feed trackedupdates) can be added to the feed. The feed can exist in the databasesystem in a variety of ways, such as a related list. The feed caninclude mechanisms to remove items as well as add them.

As described above, a news feed can be an aggregated feed of all therecord feeds and profile feeds to which a user has subscribed. The newsfeed can be provided on the home page of the subscribing user.Therefore, a news feed can be created by and exist for a particularuser. For example, a user can subscribe to receive entity feeds ofcertain records that are of interest to the user, and to receive profilefeeds of people that are of interest (e.g., people on a same team, thatwork for the user, are a boss of the user, etc.). A news feed can tell auser about all the actions across all the records (and people) whom haveexplicitly (or implicitly) been subscribed to via the subscriptionscenter (described above).

In one implementation, only one instance of each feed tracked update isshown on a user's news feed, even if the feed tracked update ispublished in multiple entities to which the user is subscribed. In oneaspect, there may be delays in publishing news articles. For example,the delay may be due to queued up messages for asynchronous entityhifeed tracked update persistence. Different feeds may have differentdelays (e.g., delay for new feeds, but none of profile and entityfeeds). In another implementation, certain feed tracked updatesregarding a subscribed profile feed or an entity feed are not shownbecause the user is not allowed access, e.g., due to sharing rules(which restrict which users can see which data). Also, in oneimplementation, data of the record that has been updated (which includescreation) can be provided in the feed (e.g., a file or updated value ofa feed can be added as a flash rendition).

Examples are provided below as how it can be determined which feed itemsto add to which news feeds. In one implementation, the addition of itemsto a news feed is driven by the following user. For example, the user'sprofile can be checked to determine objects the user is following, andthe database may be queried to determine updates to these objects. Inanother implementation, the users and records being followed drive theaddition of items to a news feed. Implementations can also combine theseand other aspects. In one implementation, a database system can befollower-driven if the number of subscriptions (users and records theuser is following) is small. For example, since the number subscriptionsare small, then changes to a small number of objects need to be checkedfor the follower.

Regarding implementations that are follower-driven, one implementationcan have a routine run for a particular user. The routine knows theusers and records that the user is following. The routine can poll thedatabase system for new feed tracked updates and messages about theusers and records that are being followed. In one implementation, thepolling can be implemented as queries. In one implementation, theroutine can run at least partially (even wholly) on a user device.

Regarding implementations where a news feed is driven by the record (oruser) being followed, processor 417 can identify followers of the recordafter a feed item is added to the record feed. Processor 417 canretrieve a list of the followers from the database system. The list canbe associated with the record, and can be stored as a related list orother object that is a field or child of the record.

In one implementation, profile and record feeds can be updatedimmediately with a new feed item after an action is taken or an eventoccurs. A news feed can also be updated immediately. In anotherimplementation, a news feed can be updated in batch jobs, which can runat periodic times.

B. Dynamically Generating Feeds

In some implementations, a feed generator can generate the feed itemsdynamically when a user requests to see a particular feed, e.g., aprofile feed, entity feed, or the user's news feed. In oneimplementation, the most recent feed items (e.g., top 50) are generatedfirst. In one aspect, the other feed items can be generated as abackground process, e.g., not synchronously with the request to view thefeed. However, since the background process is likely to complete beforea user gets to the next 50 feed items, the feed generation may appearsynchronous. In another aspect, the most recent feed items may or maynot include comments, e.g., that are tied to feed tracked updates orposts.

In one implementation, the feed generator can query the appropriatesubset of tables shown in FIG. 9A and/or other tables as necessary, togenerate the feed items for display. For example, the feed generator canquery the event hifeed tracked update table 910 for the updates thatoccurred for a particular record. The ID of the particular record can bematched against the ID of the record. In one implementation, changes toa whole set of records can be stored in one table. The feed generatorcan also query for status updates, posts, and comments, each of whichcan be stored in different parts of a record or in separate tables, asshown in FIG. 9A. What gets recorded in the entity hifeed tracked updatetable (as well as what is displayed) can be controlled by a feedsettings page in setup, which can be configurable by an administratorand can be the same for the entire organization, as is described abovefor custom feeds.

In one implementation, there can be two feed generators. For example,one generator can generate the record and profile feeds and anothergenerator can generate news feeds. For the former, the feed generatorcan query identifiers of the record or the user profile. For the latter,the news feed generator can query the subscribed profile feeds andrecord feeds, e.g., user subscription table 940. In one implementation,the feed generator looks at a person's subscription center to decidewhich feeds to query for and return a list of feed items for the user.The list can be de-duped, e.g., by looking at the event number andvalues for the respective table, such as field name or ID, comment ID,or other information.

C. Adding Information to Feed Hifeed Tracked Update Tables

FIG. 10 shows a flowchart of an example of a method 1000 for savinginformation to feed tracking tables, performed in accordance with someimplementations. In one implementation, some of the blocks may beperformed regardless of whether a specific event or part of an event(e.g., only one field of an update is being tracked) is being tracked.In various implementations, a processor or set of processors (hardwiredor programmed) can perform method 1000 and any other method describedherein.

In block 1010, data indicative of an event is received. The data mayhave a particular identifier that specifies the event. For example,there may be a particular identifier for a field update. In anotherimplementation, the transaction may be investigated for keywordsidentifying the event (e.g., terms in a query indicating a close, changefield, or create operations).

In block 1020, it is determined whether the event is being tracked forinclusion into feed tables. The determination of what is being trackedcan be based on a tenant's configuration as described above. In oneaspect, the event has an actor (person performing an event), and anobject of the event (e.g., record or user profile being changed).

In block 1030, the event is written to an event hifeed tracked updatetable (e.g., table 910). In one implementation, this feed trackingoperation can be performed in the same transaction that performs a saveoperation for updating a record. In another implementation, atransaction includes at least two roundtrip database operations, withone roundtrip being the database save (write), and the second databaseoperation being the saving of the update in the hifeed tracked updatetable. In one implementation, the event hifeed tracked update table ischronological. In another implementation, if user A posts on user B'sprofile, then user A is under the “created by” 913 and user B is underthe object ID 912.

In block 1040, a field change table (e.g., field change table 920) canbe updated with an entry having the event identifier and fields thatwere changed in the update. In one implementation, the field changetable is a child table of the event hifeed tracked update table. Thistable can include information about each of the fields that are changed.For example, for an event that changes the name and balance for anaccount record, an entry can have the event identifier, the old and newname, and the old and new balance. Alternatively, each field change canbe in a different row with the same event identifier. The field name orID can also be included to determine which field the values areassociated.

In block 1050, when the event is a post, a post table (e.g., post table950) can be updated with an entry having the event identifier and textof the post. In one implementation, the field change table is a childtable of the event hifeed tracked update table. In anotherimplementation, the text can be identified in the transaction (e.g., aquery command), stripped out, and put into the entry at the appropriatecolumn. The various tables described herein can be combined or separatedin various ways. For example, the post table and the field change tablemay be part of the same table or distinct tables, or may includeoverlapping portions of data.

In block 1060, a comment is received for an event and the comment isadded to a comment table (e.g., comment table 930). The comment could befor a post or an update of a record, from which a feed tracked updatecan be generated for display. In one implementation, the text can beidentified in the transaction (e.g., a query command), stripped out, andput into the entry at the appropriate column.

D. Reading Information from Feed Hifeed Tracked Update Tables

FIG. 11 shows a flowchart of an example of a method 1100 for reading afeed item as part of generating a feed for display, performed inaccordance with some implementations. In one implementation, the feeditem may be read as part of creating a feed for a record.

In block 1110, a query is received for an events history table (e.g.,event hifeed tracked update table 910) for events related to aparticular record. In one implementation, the query includes anidentifier of the record for which the feed is being requested. Invarious implementations, the query may be initiated from a detail pageof the record, a home page of a user requesting the record feed, or froma listing of different records (e.g., obtained from a search or frombrowsing).

In block 1120, the user's security level can be checked to determine ifthe user can view the record feed. Typically, a user can view a recordfeed, if the user can access the record. This security check can beperformed in various ways. In one implementation, a first table ischecked to see if the user has a classification (e.g., a security levelthat allows him to view records of the given type). In anotherimplementation, a second table is checked to see if the user is allowedto see the specific record. The first table can be checked before thesecond table, and both tables can be different sections of a same table.If the user has requested the feed from the detail page of the record,one implementation can skip the security level check for the recordsince the check was already done when the user requested to view thedetail page.

In one implementation, a security check is determined upon each requestto view the record feed. Thus, whether or not a feed item is displayedto a user is determined based on access rights, e.g., when the userrequests to see a feed of a record or a news feed of all the objects theuser is following. In this manner, if a user's security changes, a feedautomatically adapts to the user's security level when it is changed. Inanother implementation, a feed can be computed before being requestedand a subsequent security check can be made to determine whether theperson still has access right to view the feed items. The security(access) check may be at the field level, as well as at the recordlevel.

In block 1130, if the user can access the record, a field level securitytable can be checked to determine whether the user can see particularfields. In one implementation, only those fields are displayed to theuser. Alternatively, a subset of those the user has access to isdisplayed. The field level security check may optionally be performed atthe same time and even using the same operation as the record levelcheck. In addition, the record type check may also be performed at thistime. If the user can only see certain fields, then any feed itemsrelated to those fields (e.g., as determined from field change table920) can be removed from the feed being displayed.

In block 1140, the feed items that the user has access to are displayed.In one implementation, a predetermined number (e.g., 20) of feed itemsare displayed at a time. The method can display the first 20 feed itemsthat are found to be readable, and then determine others while the useris viewing the first 20. In another implementation, the other feed itemsare not determined until the user requests to see them, e.g., byactivating a see more link.

FIG. 12 shows a flowchart of an example of a method 1200 for reading afeed item of a profile feed for display, performed in accordance withsome implementations. In one implementation, the query includes anidentifier of the user profile feed that is being requested. Certainblocks may be optional, as is also true for other methods describedherein. For example, security checks may not be performed.

In block 1210, a query is directed to an event hifeed tracked updatetable (e.g., event hifeed tracked update table 910) for events having afirst user as the actor of the event (e.g., creation of an account) oron which the event occurred (e.g., a post to the user's profile). Invarious implementations, the query may be initiated by a second userfrom the user's profile page, a home page of a user requesting theprofile feed (e.g., from a list of users being followed), or from alisting of different users (e.g., obtained from a search or frombrowsing). Various mechanisms for determining aspects of events andobtaining information from tables can be the same across any of themethods described herein.

In block 1220, a security check may also be performed on whether thesecond user can see the first user's profile. In one implementation anyuser can see the profile of another user of the same tenant, and block1220 is optional.

In block 1230, a security (access) check can be performed for the feedtracked updates based on record types, records, and/or fields, as wellsecurity checks for messages. In one implementation, only the feedtracked updates related to records that the person has updated are theones that need security check as the feed items about the user arereadable by any user of the same tenant. Users of other tenants are notnavigable, and thus security can be enforced at a tenant level. Inanother implementation, messages can be checked for keywords or links toa record or field that the second user does not have access.

As users can have different security classifications, it is importantthat a user with a low-level security cannot see changes to records thathave been performed by a user with high-level security. In oneimplementation, each feed item can be checked and then the viewableresults displayed, but this can be inefficient. For example, such asecurity check may take a long time, and the second user would like toget some results sooner rather than later. The following blocksillustrate one implementation of how security might be checked for afirst user that has a lot of feed items, but the second user cannot seemost of them. This implementation can be used for all situations, butcan be effective in the above situation.

In block 1231, a predetermined number of entries are retrieved from theevent hifeed tracked update table (e.g., starting from the most recent,which may be determined from the event identifier). The retrievedentries may just be ones that match the user ID of the query. In oneimplementation, entries are checked to find the entries that areassociated with the user and with a record (i.e. not just posts to theuser account). In another implementation, those entries associated withthe user are allowed to be viewed, e.g., because the second user can seethe profile of the first user as determined in block 1220.

In block 1232, the record identifiers are organized by type and the typeis checked on whether the second user can see the record types. Otherchecks such as whether a record was manually shared (e.g., by the owner)can also be performed. In one implementation, the queries for thedifferent types can be done in parallel.

In block 1233, if a user can see the record type, then a check can beperformed on the specific record. In one implementation, if a user cansee a record type, then the user can see all of the records of thattype, and so this block can be skipped. In another implementation, thesharing model can account for whether a user below the second user(e.g., the second user is a manager) can see the record. In such animplementation, the second user may see such a record. In oneimplementation, if a user cannot see a specific record, then comments onthat record are also not viewable.

In block 1234, field level sharing rules can be used to determinewhether the second user can see information about an update or value ofcertain fields. In one implementation, messages can be analyzed todetermine if reference to a particular field name is made. If so, thenfield level security can be applied to the messages.

In block 1280, blocks 1231-1234 are repeated until a stopping criterionis met. In one implementation, the stopping criteria may be when amaximum number (e.g., 100) of entries that are viewable have beenidentified. In another implementation, the stopping criteria can be thata maximum number (e.g., 500) of entries from the entity hifeed trackedupdate table have been analyzed, regardless of whether the entries areviewable or not.

In one implementation, a news feed can be generated as a combination ofthe profile feeds and the entity feeds, e.g., as described above. In oneimplementation, a list of records and user profiles for the queries inblocks 1110 and 1210 can be obtained form user subscription table 940.In one implementation, there is a maximum number of objects that can befollowed.

In various implementations, the entity hifeed tracked update table canbe queried for any one or more of the following matching variables aspart of determining items for a feed: CreatedDate, CreatedByld,CreatedBy.FirstName, CreatedBy.LastName, ParentId, and Parent.Name. Thechild tables can also be queried for any one or more of the followingmatching variables as part of determining items for a feed: DataType,FieldName, OldValue, and NewValue. A query can also specify how theresulting feed items can be sorted for display, e.g., by event number,date, importance, etc. The query can also include a number of items tobe returned, which can be enforced at the server.

The two examples provided above can be done periodically to create thefeeds ahead of time or done dynamically at the time the display of afeed is requested. Such a dynamic calculation can be computationallyintensive for a news feed, particularly if many users and records arebeing followed, although there can be a low demand for storage.Accordingly, one implementation performs some calculations ahead of timeand stores the results in order to create a news feed.

E. Partial Pre-Computing of Items for a Feed

FIG. 13 shows a flowchart of an example of a method 1300 of storingevent information for efficient generation of feed items to display in afeed, performed in accordance with some implementations. In variousimplementations, method 1300 can be performed each time an event iswritten to the events hifeed tracked update table, or periodically basedon some other criteria (e.g., every minute, after five updates have beenmade, etc.).

In block 1310, data indicative of an event is received. The data may bethe same and identified in the same way as described for block 1010. Theevent may be written to an event hifeed tracked update table (e.g.,table 910).

In block 1320, the object(s) associated with the event are identified.In various implementations, the object may be identified by according tovarious criteria, such as the record being changed, the user changingthe record, a user posting a message, and a user whose profile themessage is being posted to.

In block 1330, the users following the event are determined. In oneimplementation, one or more objects that are associated with the eventare used to determine the users following the event. In oneimplementation, a subscription table (e.g., table 940) can be used tofind the identified objects. The entries of the identified objects cancontain an identifier (e.g., user ID 941) of each the users followingthe object

In block 1340, the event and the source of the event, e.g., a record(for a record update) or a posting user (for a user-generated post) arewritten to a news feed table along with an event identifier. In oneimplementation, such information is added as a separate entry into thenews feed table along with the event ID. In another implementation, eachof the events for a user is added as a new column for the row of theuser. In yet another implementation, more columns (e.g., columns fromthe other tables) can be added.

News feed table 960 shows an example of such a table with user ID 961and event ID or pointer 962. The table can be organized in any manner.One difference from event hifeed tracked update table 910 is that oneevent can have multiple entries (one for each subscriber) in the newsfeed table 960. In one implementation, all of the entries for a sameuser are grouped together, e.g., as shown. The user U819 is shown asfollowing events E37 and E90, and thus any of the individual feed itemsresulting from those events. In another implementation, any new entriesare added at the end of the table. Thus, all of the followers for a newevent can be added as a group. In such an implementation, the event IDswould generally be grouped together in the table. Of course, the tablecan be sorted in any suitable manner.

In an implementation, if the number of users is small, then the feeditems in one or more of the tables may be written as part of the samewrite transaction. In one implementation, the determination of smalldepends on the number of updates performed for the event (e.g., amaximum number of update operations may be allowed), and if moreoperations are performed, then the addition of the feed items isperformed. In one aspect, the number of operations can be counted by thenumber of rows to be updated, including the rows of the record (whichdepends on the update event), and the rows of the hifeed tracked updatetables, which can depend on the number of followers. In anotherimplementation, if the number of users is large, the rest of the feeditems can be created by batch. In one implementation, the feed items arealways written as part of a different transaction, i.e., by batch job.

In one implementation, security checks can be performed before an entryis added to the news feed table 960. In this manner, security checks canbe performed during batch jobs and may not have to be performed at thetime of requesting a news feed. In one implementation, the event can beanalyzed and if access is not allowed to a feed item of the event, thenan entry is not added. In one aspect, multiple feed items for a sameuser may not result from a same event (e.g., by how an event is definedin table 910), and thus there is no concern about a user missing a feeditem that he/she should be able to view.

In block 1350, a request for a news feed is received from a user. In oneimplementation, the request is obtained when a user navigates to theuser's home page. In another implementation, the user selects a table,link, or other page item that causes the request to be sent.

In block 1360, the news feed table and other tables are accessed toprovide displayable feed items of the news feed. The news feed can thenbe displayed. In one implementation, the news feed table can then bejoined with the event hifeed tracked update table to determine the feeditems. For example, the news feed table 960 can be searched for entrieswith a particular user ID. These entries can be used to identify evententries in event hifeed tracked update table 910, and the properinformation from any child tables can be retrieved. The feed items(e.g., feed tracked updates and messages) can then be generated fordisplay.

In one implementation, the most recent feed items (e.g., 100 mostrecent) are determined first. The other feed items may then bedetermined in a batch process. Thus, the feed item that a user is mostlikely to view can come up first, and the user may not recognize thatthe other feed items are being done in batch. In one implementation, themost recent feed items can be gauged by the event identifiers. Inanother implementation, the feed items with a highest importance levelcan be displayed first. The highest importance being determined by oneor more criteria, such as, who posted the feed item, how recently, howrelated to other feed items, etc.

In one implementation where the user subscription table 940 is used todynamically create a news feed, the query would search the subscriptiontable, and then use the object IDs to search the event hifeed trackedupdate table (one search for each object the user is following). Thus,the query for the news feed can be proportional to the number of objectsthat one was subscribing to. The news feed table allows the intermediateblock of determining the object IDs to be done at an earlier stage sothat the relevant events are already known. Thus, the determination ofthe feed is no longer proportional to the number of object beingfollowed.

In some implementations, a news feed table can include a pointer (asopposed to an event identifier) to the event hifeed tracked update tablefor each event that is being followed by the user. In this manner, theevent entries can immediately be retrieved without having to perform asearch on the event hifeed tracked update table. Security checks can bemade at this time, and the text for the feed tracked updates can begenerated.

X. Display of a Feed

Feeds include messages and feed tracked updates and can show up in manyplaces in an application interface with the database system. In oneimplementation, feeds can be scoped to the context of the page on whichthey are being displayed. For example, how a feed tracked update ispresented can vary depending on which page it is being displayed (e.g.,in news feeds, on a detail page of a record, and even based on how theuser ended up at a particular page). In another implementation, only afinite number of feed items are displayed (e.g., 50). In oneimplementation, there can be a limit specifically on the number of feedtracked updates or messages displayed. Alternatively, the limit can beapplied to particular types of feed tracked updates or messages. Forexample, only the most recent changes (e.g., 5 most recent) for a fieldmay be displayed. Also, the number of fields for which changes aredisplayed can also be limited. Such limits can also be placed on profilefeeds and news feeds. In one implementation, feed items may also besubject to certain filtering criteria before being displayed, e.g., asdescribed below.

A. Sharing Rules for Feeds

As mentioned above, a user may not be allowed to see all of the recordsin the database, and not even all of the records of the organization towhich the user belongs. A user can also be restricted from viewingcertain fields of a record that the user is otherwise authorized toview. Accordingly, certain implementations use access rules (also calledsharing rules and field-level security FLS) to ensure that a user doesnot view a feed tracked update or message that the user is notauthorized to see. A feed of a record can be subject to the same accessrules as the parent record.

In one implementation, access rules can be used to prevent subscriptionto a record that the user cannot see. In one implementation, a user cansee a record, but only some of the fields. In such instances, only itemsabout fields that the user can access may be displayed. In anotherimplementation, sharing rules and FLS are applied before a feed item isbeing added to a feed. In another implementation, sharing rules and FLSare applied after a feed item has been added and when the feed is beingdisplayed. When a restriction of display is mentioned, the enforcementof access rules may occur at any stage before display.

In some implementations, the access rules can be enforced when a queryis provided to a record or a user's profile to obtain feed items for anews feed of a user. The access rules can be checked andcross-references with the feed items that are in the feed. Then, thequery can only return feed items for which the user has access.

In other implementations, the access rules can be enforced when a userselects a specific profile feed or record feed. For example, when a userarrives on a home page (or selects a tab to see the record feed), thedatabase system can check to see which feed items the user can see. Insuch an implementation, each feed item can be associated with metadatathat identifies which field the feed item is about. Thus, in oneimplementation, a feed tracked update is not visible unless theassociated record and/or field are visible to the user.

In one example, when a user accesses a feed of a record, an access checkcan be performed to identify whether the user can access the object typeof the record. In one implementation, users are assigned a profile type,and the profile type is cross-referenced (e.g., by checking a table) todetermine whether the profile type of the user can see the object typeof the record.

In some implementations, access to specific records can be checked,e.g., after it has been determined that the user can access the recordtype. Rules can be used to determine the records viewable by a user.Such rules can determine the viewable records as a combination of thoseviewable by profile type, viewable due to a profile hierarchy (e.g., aboss can view records of profile types lower in the hierarchy), andviewable by manual sharing (e.g., as may be done by an owner of arecord). In one implementation, the records viewable by a user can bedetermined beforehand and stored in a table. In one implementation, thetable can be cross-referenced by user (or profile type of a user) toprovide a list of the records that the user can see, and the list can besearched to determine if the record at issue is among the list. Inanother implementation, the table can be cross-referenced by record todetermine a list of the profile types that can access the record, andthe list can be searched to find out if the requesting user is in thelist. In another implementation, the records viewable by a user can bedetermined dynamically at the time of the access check, e.g., byapplying rules to data (such as user profile and hierarchy information)obtained from querying one or more tables.

In other implementations, checks can be made as to whether a user hasaccess to certain fields of a record, e.g., after it has been determinedthat the user can access the record. In one aspect, the access check onfields can be performed on results already obtained from the database,to filter out fields that the user cannot see. In one implementation,the fields associated with retrieved feed items are determined, andthese fields are cross-referenced with an access table that contains thefields accessible by the user (e.g., using the profile type of theuser). Such an access table could also be a negative access table byspecifying fields that the user cannot see, as can other access tablesmentioned herein. In one implementation, the field level access table isstored in cache at a server.

In one implementation, a user can see the same fields across all recordsof a certain type (e.g., as long as the user can see the record). In oneimplementation, there is a field level access table for each objecttype. The access table can be cross-referenced by user (e.g., viaprofile type) or field. For example, a field can be identified alongwith the profile types that can see the field, and it can be determinedwhether the user's profile type is listed. In another example, the usercan be found and the fields to which the user has access can beobtained. In another implementation, the accessible fields could bespecified for each record.

Regarding profile feeds and news feeds, a first user may perform anaction on a record, and a feed tracked update may be generated and addedto the first user's profile feed. A second user who is allowed to followthe first user may not have access rights to the record. Thus, the feedtracked update can be excluded from a news feed of the second user, orwhen the second user views the first user's profile feed directly. Inone implementation, if a user is already on the detail page, thenanother access check (at least at the record level) may optionally notbe performed since a check was already done in order to view the detailpage.

In some implementations, for profile feeds and news feeds, the feeditems can be organized by object type. IT can then be determined whetherthe requesting user can access to those object types. Other accesschecks can be done independently or in conjunction with these accesschecks, as is described above.

B. API Implementation

Various implementations can implement the access rules in various ways.In one implementation, all recent feed items (or more generally events)are retrieved from a feed that is ready for display (e.g., after a feedgenerator performs formatting) or a table. Then, bulk sharing checks canbe applied on the retrieved items. The viewable feed items of the mostrecent set can then be displayed.

In another implementation regarding a profile feed, for non-VAD (viewall data) users, i.e. users who can see everything, certain functionscan be overridden. In one implementation, a FROM clause in a query canbe overridden to be a pipelined function, e.g., with different parts ofthe query being operated on at the same time, but with differentoperations of a pipeline. This pipeline function can be given a rowlimit and the maximum number of sharing checks to run. It can loop,selecting the next batch of rows, run sharing checks against them inbulk, and pipe back any IDs which are accessible. In one aspect, innearly all cases, the user feed can contain accessible IDs so thesharing checks can pass on the first loop. However, it is possible thesharing may have changed such that this user's access is greatlyreduced. In one worst case, implementations can run sharing checks on upto the maximum number of sharing check rows (e.g., a default 500) andthen terminate the function with the IDs which passed so far, possiblyzero. Such an example includes a low level person viewing profile feedof CEO.

In some implementations, if the user has a small number of subscriptions(e.g., <25), then implementations can first run sharing checks on thoseIDs and then drive the main query from those accessible IDs, as opposedto a semi-join against the subscription and running sharing checks onthe resulting rows. In other implementations, FLS is enforced bybuilding up a TABLE CAST of the accessible field IDs from the cachedvalues. A main query can then join against this table to filter onlyaccessible fields.

XI. Filtering and Searching Feeds

It can be possible that a user subscribes to many users and records,which can cause a user's news feed to be very long and include many feeditems. In such instances, it can be difficult for the user to read everyfeed item, and thus some important or interesting feed items may not beread. In some implementations, filters may be used to determine whichfeed items are added to a feed or displayed in the feed, even though auser may be authorized to see more than what is displayed. Section VII.Ealso provides a description of filtering based on criteria.

In one implementation, an “interestingness” filter can function as amodule for controlling/recommending which feed tracked updates make itto the news feed when the number of items that a user subscribes to islarge. In one such implementation, a user can specify a filter, which isapplied to a user's news feed or to record and profile feeds that theuser requests. Different filters can be used for each. For example,processing can be done on the news feed to figure out which feed trackedupdates are the most relevant to the user. One implementation can use animportance weight and level/ranking, as described herein. Otherimplementations can include a user specifying keywords for a message andspecifying which records or users are most important.

In one implementation, a filter can be used that only allows certainfeed items to be added to a feed and/or to be displayed as part of afeed. A filter can be used such that the removal or non-addition ofcertain feed items automatically occur for any new feed items after thefilter criteria are entered. The filter criteria can also be addedretroactively. The criteria of such a filter can be applied via a querymechanism as part of adding a feed item to a table or displaying a feed,as described in sections above. In various implementations, a user candirectly write a query or create the query through a graphical userinterface.

FIG. 14 shows a flowchart of an example of a method 1400 for creating acustom feed for users of a database system using filtering criteria,performed in accordance with some implementations. Any of the followingblocks can be performed wholly or partially with the database system,and in particular by one or more processor of the database system.

In block 1410, one or more criteria specifying which feed items are tobe displayed to a first user are received from a tenant. In oneimplementation, the criteria specifies which items to add to the customfeed. For example, the criteria could specify to only include feed itemsfor certain fields of a record, messages including certain keywords, andother criteria mentioned herein. In another implementation, the criteriaspecifies which items to remove from the custom feed. For example, thecriteria could specify not to include feed items about certain fields orincluding certain keywords.

In block 1420, the database system identifies feed items of one or moreselected objects that match the criteria. The feed items can be storedin the database, e.g., in one or more of the tables of FIG. 9A. In oneimplementation, the one or more selected objects are the objects thatthe first user is following. In another implementation, the one or moreselected objects is a single record whose record feed the first user isrequesting.

In block 1430, the feed items that match the criteria are displayed tothe first user in the custom feed. The generation of text for a feedtracked update can occur after the identification of the feed items(e.g., data for a field change) and before the display of the finalversion of the feed item.

In one implementation, the criteria are received before a feed item iscreated. In another implementation, the criteria are received from thefirst user. In one aspect, the criteria may only used for determiningfeeds to display to the first user. In yet another implementation, thecriteria are received from a first tenant and applies to all of theusers of the first tenant. Also, in an implementation where a pluralityof criteria are specified, the criteria may be satisfied for a feed itemif one criterion is satisfied.

Some implementations can provide mechanisms to search for feed items ofinterest. For example, the feed items can be searched by keyword, e.g.,as entered by a user. As another example, a tab (or other selectiondevice) can show feed items about or from a particular user. In oneimplementation, only messages (or even just comments) from a particularuser can be selected.

In another implementation, a user can enter search criteria so that thefeed items currently displayed are searched and a new list of matchingfeed items is displayed. A search box can be used to enter keywords.Picklists, menus, or other mechanisms can be used to select searchcriteria. In yet another implementation, feed comments are text-indexedand searchable. Feed comments accessibility and visibility can apply onthe search operation too.

In one implementation, when a user performs a search of feeds, there canbe an implicit filter of the user (e.g., by user ID). This can restrictthe search to only the news feed of the user, and thus to only recordfeeds and profile feeds that the user is subscribed. In anotherimplementation, searches can also be done across feeds of users andrecords that are not being subscribed.

Besides searching for feed items that match a criteria, one also couldsearch for a particular feed item. However, in one implementation, auser cannot directly query a feed item or feed comment. In such animplementation, a user can query to obtain a particular profile orrecord feed, and then navigate to the feed item (e.g., as child of theparent feed). In another implementation, the relationship from a feed toits parent entity (e.g., a record or user profile) is uni-directional.That is a user can navigate from the feed to the parent but not viceversa.

In one implementation, a user can directly query the child tables, e.g.,comment table 930. Thus, a user could search for comments only that userhas made, or comments that contain certain words. In anotherimplementation, a user can search for a profile feed of only one user.In yet another implementation, a user can search for profile feeds ofmultiple users (e.g., by specifying multiple user names or IDs), whichcan be combined into a single feed.

XII. Maintaining Records for Follower's Feeds

If every feed item is stored and maintained on a follower's feed or evenin the profile and/or record feeds, the amount of data to be storedcould be massive, enough to cause storage issues in the system. In oneimplementation, the N (e.g., 50) most recent feed items for each feedare kept. However, there can be a need to keep certain older feed items.Thus, implementations can remove certain feed items, while keepingothers. In other implementations, old feed tracked updates may bearchived in a data store separate from where recent feed items arestored.

In some implementations, feeds are purged by a routine (also called areaper) that can remove items deemed not worthy to keep (e.g., olditems). Any underlying data structures from which feed items are createdcan also be purged. In one implementation, the reaper can remove certainitems when new items are added (e.g., after every 5th item added). Asanother example, feed items may be deleted synchronously during the saveoperation itself. However, this may slow down each save operation. Inone implementation, however, this may be better than incurring a largercost when the items are removed at longer intervals. In anotherimplementation, the reaper can run periodically as a batch process. Suchroutines can ensure that a table size does not become too large. In oneaspect, a reaper routine can keep the event hifeed tracked update tablerelatively small so the sharing checks are not extremely expensive.

In various implementations, the reaper can maintain a minimum number(e.g., 50 or 100) of feed items per record, maintain a minimum number ofrecords per user (e.g., per user ID), and not deleting feed items (orentire records), which have comments against it. Such implementationscan ensure that the detail page and profile page have sufficient data todisplay in a feed. Note that the sharing checks for feed queries can cutdown the number of records further for users with less access. Thus, thenumber of records finally displayed for specific users can besignificantly less than a minimum number for a specific profile orrecord feed. In one implementation, a reaper deletes data that is olderthan a specified time (e.g., 6 months or a year).

In one implementation, the reaper can perform the deletion of feed items(purging) as a batch up deletion. This can avoid deletion of largenumber of records that may lead to locking issues. In anotherimplementation, the reaper can be run often so that the table does notbecome difficult to manage (e.g., size-wise). In this way the reaper canwork on a limited set of records. In one implementation, the reaper mayhave logic that deletes certain items (e.g., by an identification) fromtables (e.g., those in FIG. 9A), or sections of the tables.

XIII Fragmenting a Newsfeed

FIG. 15 shows a block diagram of a specific implementation of a systemfor fragmenting a newsfeed. This system includes any number of clientssuch as first, second, and third clients 1510A, 1510B, and 1510C whichaccess a server 1515 via a network 1520. The network is as show in FIGS.1A and 1B and described above.

The clients are general purpose computers with hardware and software,such as shown in FIGS. 1A and 1B and described above. For example, thefirst client includes a first display 1520A, a first application program(e.g., first browser program) 1525A, an input device, a processor,memory, and storage. Similarly, the second client includes a seconddisplay 1520B, a second application program (e.g., second browserprogram) 1525B, an input device, a processor, memory, and storage. Thethird client includes a third display 1520C, a third application program(e.g., third browser program) 1525C, an input device, a processor,memory, and storage.

FIG. 15 shows three clients. It should be appreciated that an enterprisecan have any number of clients such as tens, hundreds, or thousands ofclients. The clients execute executable code (or computer-readable code)that embodies a technique or algorithm as described in this application.The browser is an application program that can request, receive, andprocess data from a user, the server, or both. The data can be shown viaa display.

The server includes components similar to the components shown in FIGS.1A and 1B and described above. For example, the server includes aprocessor, memory, applications 1530, and storage 1535. In a specificimplementation, the server includes a feed item promotions module 1540,a permissions module 1545, a notification module 1550, and a trackingmodule 1555. The storage includes a database 1560, 1565, and 1570.Database 1560 stores item content. Database 1565 stores reasons input bya user explaining why the item was promoted. Database 1570 storestracking information regarding item promotion. The applications includean enterprise social network application 1580 having features asdescribed above (see FIGS. 3-14 and accompanying description).

An application such as a Web server 1575 delivers Web pages and othercontent from the storage to the browsers. The social network applicationis accessible over the network using the browser. For example, first,second, and third users at clients 1510A-1510C, respectively, login byusing a browser to access the application. The application may requirethat the user input a username and a password so that the user can beauthenticated as a member of the social network. The users may beemployees, colleagues, partners, or members of the same company,organization, entity, partnership, joint venture, or have a businessrelationship (e.g., supplier-manufacturer relationship, or client-vendorrelationship), and so forth.

The enterprise social network application provides a newsfeed that canbe displayed via the browsers. In the example shown in FIG. 15, there isa first newsfeed 1580A showing a set of items 1582A, a second newsfeed1580B showing a set of items 1582B, and a third newsfeed 1580C showing aset of items 1582C. As discussed above, the items or feed items can beassociated with other users, groups, records, or data objects that theuser is following, is a member of, or is subscribed to. An item mayinclude an update (e.g., status update, record update notification),comment, post, message, and so forth. When a user is following anotheruser or record, the user can see related updates in the user's newsfeed.For example, a first user can follow a second user to see the seconduser's posts. The first user can follow a record to see posts, comments,and field changes made to the record.

In a specific implementation, a feature of the enterprise social networkapplication includes a tool or promotion tool (e.g., tools 1585A-C). Thetool allows a user to fragment a newsfeed by promoting or reposting anitem in the newsfeed to another or destination newsfeed. For example,there can be a first user at first client 1510A viewing items shown infirst newsfeed A. The items can be associated with users, groups,records, things, or other data objects that the first user is following.Item 2 shown on first newsfeed A may include a post that a second userhas made to a group that includes the first and second users. The firstuser may decide that the item should be promoted to another ordestination newsfeed such as third newsfeed C for a third user who isnot a member of the group.

In this example, typically, item 2 will not be published on thirdnewsfeed C for the third user because the third user is not a member ofthe group to which the item has been posted. The first user, however,may decide that the item may be of interest to the third user. So, thefirst user can promote item 2 to third newsfeed C. When item 2 ispromoted, the system publishes the item on third newsfeed C for thethird user to view.

In FIG. 15, item 2 shown on third newsfeed C includes a visualidentifier represented as asterisks 1583 to indicate that the item hasbeen promoted. The visual identifier can be anything that helps toidentify an item as being a promoted item. For example, the visualidentifier can include text (e.g., “First user A has promoted thisitem.”), colors, icons, or combinations of these. The visual identifierhelps the third user distinguish between items on the newsfeedassociated with things the third user is following and items on thenewsfeed associated with things the third user is not following, butthat have been promoted. The visual identifier can be optional and maynot be included in some embodiments.

In a specific implementation, no additional application besides abrowser application needs to be installed on the client in order for auser to use the features of the promotion tool. For example, no browserplug-in needs to be installed on the client. In this specificimplementation, the promotion tool is not installed on the clientsystem, but is available when a user logs into the social networkapplication Web site. This is desirable in cases where a user does nothave administrator privileges to install software on the client machine.In a specific implementation, executable code for the promotion tool isnot stored on a hard drive of the client machine (e.g., also no Windowsregistry entries), but rather the code is portable and can be obtainedvia the network and Web site; there is no need to reboot the clientmachine to make the code effective. The same code that is associatedwith the social network Web site is platform independent. Thus, the codecan be run by a computer having the Microsoft Windows operating systemor a computer having the Apple OS X operating system as long as anappropriate Web browser is used (e.g., Internet Explorer® fromMicrosoft, Safari® from Apple, Chrome® from Google, or Firefox® fromMozilla, just to name a few examples).

In various other implementations, the tool may be part of the browser ora plug-in to the browser. The tool may be a Java® applet, ActiveXcontrol, or other Web-based executable program. In anotherimplementation, the tool may be a separate application from the browser.The tool may be purchased as an application separate from the browserand may permanently occupy memory on the client system.

In a specific implementation, the tool works in conjunction with thepromotion, permission, notification, and tracking modules. Promotionmodule 1540 is responsible for managing the promotion of an item shownin a newsfeed to another newsfeed. Permissions module 1545 isresponsible for managing, applying, and enforcing permissions orsecurity settings associated with item promotion. Notification module1550 is responsible for sending notifications or alerts regarding itempromotion. When an item has been promoted to a destination newsfeed, anotification may or may not be sent to the author of the item. Anotification may or may not be sent to a user of the destinationnewsfeed. A notification may include an e-mail, text message, instantmessage, voice call (e.g., automated recording), or combinations ofthese.

Tracking module 1555 is responsible tracking item promotion activity andstoring the tracking data in activity log 1570. The tracking module maytrack, for example, a number of times an item is promoted, the user whopromoted the item, the time and date that the item was promoted, thetime and date that the promoted item was accessed (e.g., viewed), theidentity of the users who accessed the promoted item, the newsfeed thatthe item was promoted to, comments made in response to the promoteditem, the users who made the comments, and the like.

FIG. 16 shows an overall flow 1605 for using the tool to promote an itemshown in a newsfeed to another or destination newsfeed. Some specificflows are presented in this application, but it should be understoodthat the invention is not limited to the specific flows and stepspresented. A flow of the invention may have additional steps (notnecessarily described in this application), different steps whichreplace some of the steps presented, fewer steps or a subset of thesteps presented, or steps in a different order than presented, or anycombination of these. Further, the steps in other implementations of theinvention may not be exactly the same as the steps presented and may bemodified or altered as appropriate for a particular application or basedon the data.

In a step 1610, the tool or system receives a request from a first userto promote an item shown on a newsfeed of the first user. The requestmay include an identification or selection of the item to be promoted.The item may include content provided by a second user. For example, thecontent may include text input by the second user (e.g., a comment orstatus update), links, a document or file (e.g., MS Word file, MSPowerPoint file, MS Excel file, Portable Document Format (PDF), or otherfile) that the second user has uploaded to the system or has updated, orcombinations of these.

In a step 1615, the tool prompts the first user to select a destinationnewsfeed. The destination newsfeed may be associated with another user,group, record, or data object (e.g., account object, or opportunityobject). In a step 1620, the tool receives from the first user aselection or identification of the destination newsfeed. In a step 1625,the item is published on the selected destination newsfeed for a thirduser to view.

FIGS. 17-19 show a sequence of a specific implementation of Web pageshaving the promotion tool. These Web pages may be displayed in a windowof an application program such as a Web browser executing on the client.FIG. 17 shows a Web page 1705 of a first user 1710 (e.g., “ParkerHarris”). The Web page includes a set of tabs 1715 including “Home,” “MyProfile,” “Groups,” “Accounts,” “Contacts,” “Opportunities,” “Reports,”and “Dashboards.”

The “Home” tab allows a user to see their posts, posts from other usersthe user is following, updates to records the user is following, andposts to groups the user is a member of. The “Profile” tab allows theuser to see posts made by users whose profile the user is viewing. The“Groups” tab allows the user to see posts to the group the user isviewing. The “Accounts” tab allows the user to see updates to theaccount the user is viewing. The “Contacts” tab allows the user to seeinformation about their contacts (e.g., telephone number, address,e-mail address, and so forth). The “Opportunities” tab allows the userto see updates to the opportunity the user is viewing. The “Reports” taballows the user to run reports, create custom reports, or both. The“Dashboard” tab can display data from a variety of different sources inhigh-level graphical visuals such as charts, graphs, tables, orcombinations of these.

Below the set of tabs are a left-hand section 1720, a right-hand section1725, and a middle section 1730. The middle section is between the left-and right-hand sections. The left-hand section includes a menu. Theright-hand section includes a sub-section 1730A, a sub-section 1730B,and a sub-section 1730C. Sub-section 1730A shows a collection ofmembers. The collection of members shown may be the members of theorganization that the first user is following. Sub-section 1730B shows asearch tool that allows the user to search for people, things, or bothto follow. Sub-section 1730C shows a widget (e.g., Twitter widget) thatcollects and presents “tweets.” A “tweet” is a post made on the websiteTwitter.

The middle section includes a newsfeed 1735. The newsfeed includes anynumber of items such as item 1740A, 1740B, 1740C, 1740D, 1740E, and1740F. In this specific implementation, the promotion tool includes agraphical control 1745 next to each item. The control may be a link,button, or other graphical user interface (GUI) control. There can be athreaded discussion 1750 that is maintained on the newsfeed. Forexample, threaded discussion 1750 includes item 1740B as a top-levelpost. The top-level post may be referred to as a topic. Below thetop-level post are items 1740C-F that include comments related to, madein response to, or associated with the top-level post.

Items 1740B-F may be referred to as an online conversation. In thisexample, the online conversation includes a post (e.g., item 1740B) madeby first user A “Parker Harris” (e.g., “Does anyone have the keynotedect from SVUC '08?”). The post was followed by comments 1740C-1740Fmade by users “Ella Johnson,” “James Saxon,” “Mary Moore,” and “BillBauer,” respectively.

First user A (e.g., “Parker Harris”) can promote an item shown innewsfeed 1735 to another newsfeed for another user by selecting theappropriate promotion control. For example, item 1740F includes contentprovided by a second user, e.g., “Bill Bauer.” The content includes thetext input “The file is on the intranet under SVUC. It's the only one.”In this specific implementation, to promote item 1740F, the first usermakes a promotion request by selecting or clicking a promotion link1755.

Referring now to FIG. 18, clicking on promotion link 1755 invokes orcauses the promotion tool to draw on the display a dialog box 1805 onthe first user's Web page. The dialog box includes a drop down list1810, a button 1815 to confirm the promotion, and a button 1820 tocancel the promotion.

The drop down list lists the various destinations that item can bepromoted to. A destination can include a user, group, record, or otherdata object (e.g., accounts or opportunities). When an item is promotedto a destination, the item is published on a newsfeed associated withthe destination. For example, when an item is promoted to a newsfeed fora user, the promoted item is shown on the newsfeed for the user. When anitem is promoted to a newsfeed of a group, the item is shown on thenewsfeed for the group. Users who are members of the group will be ableto view the promoted item. When an item is promoted to a record, theitem is shown on the newsfeed for the record. Users who are followingthe record will be able to view the promoted item.

In a specific implementation, the promotion tool filters the listing ofdestinations so that relevant destinations are shown and irrelevantdestinations are not shown. Relevant destinations can include users,groups, records, or other data objects whose associated newsfeeds do notinclude item to be promoted. Irrelevant destinations can include users,groups, records, or other data objects whose associated newsfeeds doinclude the item to be promoted.

A destination newsfeed may be irrelevant (and thus not shown) if italready includes the item to be promoted. If a destination newsfeedalready includes the item to be promoted, the user may not desire tohave the item shown again in the destination newsfeed. Filtering thedestination list can help to reduce the amount of information shown to amore manageable subset. In another specific implementation, thedestination list includes users, groups, records, or other data objectswhose associated newsfeeds may already include the item to be promoted.Allowing an item to be promoted to a newsfeed even if the newsfeedalready includes the item helps to emphasize the importance of the item.

The listing of destinations may include users, groups, records, otherdata objects, or combinations of these that the first user is following.There can be a control, such as a “see all” control. The “see all”control allows the first user to see and select other users, groups,records, or other data objects that the first user is not following.

The first user may be able to promote the item to their own newsfeed.This allows users following the first user to see the promoted item. Forexample, the first user may be following a number of people within thesocial network so that the first user can provide information that hethinks will help his team succeed. The first user notices an onlineconversation between two account representatives from another team, inwhich they discuss some key selling points that enabled them to win anew account. The first user promotes an item, e.g., re-post a portion ofthat online conversation, to his own newsfeed.

Upon the first user selecting the destination and clicking “Ok” button1815, the item is published on the selected destination newsfeed. FIG.19 shows an example of a Web page 1905 of a third user 1910 (e.g., “DaveKirk”). This Web page includes a layout and elements similar to thatshown on Web page 1710 (FIG. 17).

More particularly, Web page 1905 includes a newsfeed 1935 for the thirduser. The newsfeed includes an item 1940. The item is positioned as atop-level node on the newsfeed. The item may be referred to as promoteditem 1740F (FIG. 17). The item may include an indication to show thatthe item has been promoted. In this example, the indication includes thesystem generated message, “Parker Harris ([First user A]) has promotedthis item. 5:15 PM.” Below the system generated message is the promoteditem content input by second user B, “Bill Bauer” (“The file is on theintranet under SVUC. It's the only one.”).

The promotion tool or feature allows third user C to view the itemcontent (e.g., post or message) provided by second user B even thoughthird user C may not be following second user B, following the recordthat second user B's post was made to, or belong to the same group thatsecond user B posted the message to. There can be a threaded discussionassociated with the item 1940. For example, third user C can input acomment to item 1940 by clicking on a comment link 1945. The comment mayappear below item 1940 and be positioned as a second level node. Thatis, the comment may be offset to the right or indented or nested withrespect to item 1940.

The tool provides a convenient way for a user of the enterprise socialnetwork to bring a newsfeed item to the attention of another user of theenterprise social network who may have not received the item on theirnewsfeed. With the tool, the user does not have to cut-and-paste theitem content into an e-mail to send to the other user. Having to performa copy operation, switch from the enterprise social network applicationto an e-mail application, or both can be very disruptive andtime-consuming. Further, communications occurring outside of the systemmay not be tracked. Thus, having to use an external system (e.g.,e-mail) to share information can result in portions of the issue trackedin the system and other portions tracked elsewhere. This can beundesirable because it increases administration overhead wheninformation is stored in two different systems.

In some cases, the tool allows a promoted item to be re-promoted. Forexample, there can be a control 1947 associated with item 1940. Thethird user can re-promote the item by clicking the control. Re-promotionof the item may be similar to flow shown in FIG. 16 and described in thediscussion accompanying FIG. 16.

FIG. 20 shows a flow 2005 of another specific implementation of thepromotion tool. In this specific implementation, the tool allows a userto input a reason to explain why the item is being promoted. In a step2010, upon the user (e.g., first user) making an item promotion request,the tool seeks a reason for the promotion. For example, the tool mayprompt the user to input a reason. In a specific implementation,inputting a reason is optional. In another specific implementation,inputting a reason is required. An administrator may be able toconfigure whether a reason is or is not optional.

FIG. 21 shows an example of a Web page 2105 for inputting a reason. ThisWeb page includes a newsfeed 2110 for a first user 2115 (e.g., “ParkerHarris”). The newsfeed shows a set of items including an item 2120.There is a promotion control 2125 displayed next to item 2120. Item 2120includes content provided by a second user 2122 (e.g., “Bill Bauer”).The content includes the text “The file is on the intranet under SVUC.It's the only one.” The first user can promote item 2120 by selecting(e.g., clicking) promotion control 2125. In this example, upon the firstuser selecting the promotion control, a dialog box 2130 pops up on thedisplay. The dialog box may be superimposed as an overlay over Web page2105.

The dialog box includes instruction text 2135 (e.g., “Please input areason for the promotion.”), an input box 2140, an “Ok” button 2145, anda “Cancel” button 2150. The first user can input a reason for thepromotion using input box 2140. For example, the first user may inputthe text “Have a look, we should give our partners a copy of the file.”

Referring now to FIG. 20, in a step 2015, upon the first user inputtingthe reason and clicking the “Ok” button, the reason is received andstored (e.g., stored in reasons database 1565—FIG. 15). In a step 2020,the reason is associated with the item to be promoted (e.g., item2120—FIG. 21).

In a step 2025, the item and the reason are published on a destinationnewsfeed for a third user. FIG. 22 shows an example of a Web page 2205of a third user 2210 (e.g., “Dave Kirk”). This Web page includes alayout and elements similar to those shown on Web page 1905 (FIG. 19)and described in the discussion accompanying FIG. 19. For example, Webpage 2205 includes a newsfeed 2215 showing an item or promoted item2220. Item 2220, however, includes a reason 2225 input by the first user(e.g., “Parker Harris”) to explain why the item was promoted (e.g.,“Have a look, we should give our partners a copy of the file.”)

The reason can help to reduce any confusion the third user may haveregarding the item appearing the third user's newsfeed. For example, thethird user may not expect such an item to appear on his newsfeedbecause, as explained above, he may not be following the second user,record to which the message was posted, or may not be a member of thegroup where the message was posted. In other words, typically, the itemwill appear on the newsfeed of the first user who, for example, isfollowing the second user, but the item will not appear on the newsfeedof the third user who is not following the second user. After the firstuser promotes the item, however, the item will appear on the newsfeed ofthe third user. Providing the “reason” helps to provide an explanationto the third user regarding why the item is being shown on his newsfeed.

FIG. 23 shows a flow 2305 of another specific implementation of thepromotion tool. In this specific implementation, the tool allows a userto apply one or more permissions or security settings to an item beingpromoted. In a step 2310, a request to promote an item is received (seestep 1610 and accompanying discussion—FIG. 16).

In a step 2315, the tool shows the user one or more permission optionsthat can be applied to the item being promoted. FIG. 24 shows an exampleof a Web page 2405 for selecting permission options. This Web pageincludes a layout and elements similar to those shown on Web page 1705(FIGS. 17-18) and described in the discussion accompanying FIGS. 17-18.For example, as shown in FIG. 24, there is a dialog box 2410. The dialogbox is drawn after a promotion control 2415 to promote an item 2420 hasbeen selected by a first user 2425. The dialog box includes adestination listing 2430 that lists the destinations that the item maybe promoted to. In this specific implementation, however, dialog box2410, further includes a drop down list 2435.

Drop down list 2435 includes a listing of permission options that can beapplied to the item being promoted. The Table below lists some examplesof permission options.

TABLE Permission Option Description Block item author from May prevent anotification being sent to the item author accessing promoted item.informing the author that the item has been promoted. May prevent theauthor from viewing the promoted item on the destination newsfeed. Mayprevent the author from viewing comments made in response to thepromoted item on the destination newsfeed. Block original recipients Mayprevent notifications being sent to the original user of item fromaccessing recipients who received the item on their newsfeeds. Maypromoted item. prevent the recipients from viewing the promoted item onthe destination newsfeed. May prevent the recipients from viewingcomments made in response to the promoted item on the destinationnewsfeed. Block item author and May prevent notifications being sent tothe author and users users following the author following the author.May prevent the author and the users from from accessing promotedviewing the promoted item on the destination newsfeed. May item. preventthe author and users from viewing comments made in response to thepromoted item on the destination newsfeed. Block item from being re-Prevents promoted item from being re-promoted. promoted. Block item frombeing re- Prevents promoted item from being re-promoted more than Zpromoted more than Z times where Z is a variable having a thresholdvalue provided times. by the user. Block [user Y] from Allows the userto identify one or more users who should not be accessing the promotedallowed access to the promoted item. User Y is a variable item. having avalue provided by the user. Block [group X] from Allows the user toidentify one or more groups who should not accessing the promoted beallowed to access the promoted item. Group X is a variable item. havinga value provided by the user. Allow item author access May permitnotifications to be sent to the item author to inform to promoted item.the author that the item has been promoted. Allow original recipientsMay permit notifications to be sent to the original user of item toaccess the recipients who received the item on their newsfeeds. Maypromoted item. permit the recipients to view the promoted item on thedestination newsfeed. May permit the recipients to view comments made inresponse to the promoted item on the destination newsfeed. Allow itemauthor and May permit notifications to be sent to the author and usersusers following the author following the author. May permit the authorand the users to to access the promoted view the promoted item on thedestination newsfeed. May item. permit the author and the users to viewcomments made in response to the promoted item on the destinationnewsfeed. Allow item to be re- Permits item to be re-promoted. promoted.Allow [user K] access to Permits the user to identify one or more userswho should be the promoted item. able to access the promoted item. Otherusers not permitted are blocked. User K is a variable having a valueprovided by the user. Allow [group L] access to Permits the user toidentify one or more groups who should be the promoted item. able toaccess the promoted item. Other groups are blocked. Group L is avariable having a value provided by the user.

There can be other permission options. For example, a permission optionmay allow the item author to receive a notification that the item hasbeen promoted, but prevents the item author from viewing the resultingonline conversations. Another permission option may allow the itemauthor to receive a notification that identifies the users to which theitem was promoted to, but prevents the item author from viewing theresulting online conversations.

As an example, in some cases, it will be desirable to prevent the itemauthor from knowing that his item had been promoted. The item author mayhave made an inappropriate post (e.g., a rude comment). In such cases,users of the organization such as the item author's supervisor and thehuman resources department may want to have a confidential onlineconversation within the social network system regarding theinappropriate post. The conversation may include, for example, whetheror not to terminate the item author's employment, whether or not theitem author should be reprimanded, the company's potential legalexposure, and so forth.

In other cases, it will be desirable to inform the item author that theitem has been promoted. For example, the item may relate to a newproduct idea that is brought to the attention of upper management. Therecan be an online conversation within the system between upper managementover whether or not resources should be devoted to further develop theidea. In these cases, it may be desirable to let the item author knowthat the item has been promoted. This can allow the item author toprovide additional comments regarding the idea.

Referring now to FIG. 23, in a step 2320, the settings or values for thepermission options are received from the user. In a step 2325, thepermission settings are enforced for the promoted item. Users may beallowed to view or blocked from viewing the promoted item on thedestination newsfeed, allowed to view or blocked from viewing commentsmade in response to the promoted item on the destination newsfeed, andso forth.

In a specific implementation, permission settings for a promoted itemcan be changed after the item has been published on the destinationnewsfeed. For example, a user who promotes an item to a destinationnewsfeed may initially decide that the item author should not be allowedaccess to the promoted item and comments made in response to thepromoted item. In this specific implementation, the user can modify,edit, or alter the permission settings so that after the modifying, theitem author will have access to the promoted item, comments, or both.

FIG. 25 shows a flow 2505 of another specific implementation of thepromotion tool. In this specific implementation, the tool allows an itemauthor to place promotion restrictions on the item. In a step 2510, thetool shows a user one or more restrictions that can be applied to limitpromotion of an item having content provided by the user. FIG. 26 showsan example of a Web page 2605 for selecting promotion restrictions. ThisWeb page includes a layout and elements similar to those shown on Webpage 1705 (FIG. 17) and described in the discussion accompanying FIG.17.

For example, as shown in FIG. 26, there is a newsfeed 2610 for a firstuser 2615 (e.g., “Parker Harris”). The newsfeed shows a set of itemsincluding items 2620A-2620D representing an online conversation amongthe various item authors. The first user can add a comment 2623 to theconversation using an input box 2625 (e.g., “This file needs to bemarked confidential because it contains info about the Atlas merger.”).The comment will then appear as an item in the newsfeeds of the usersparticipating in the conversation, e.g., “Ella Johnson,” “James Saxon,”“Mary Moore,” and “Bill Bauer.”

In this example, upon the comment being inputted, a dialog box 2630 popsup. The dialog box includes a drop down list 2635, an “Ok” button 2640,and a “Cancel” button 2645.

The drop down list includes the various promotion restrictions that thefirst user may choose from. For example, as shown in FIG. 26 there is afirst restriction 2650A (“e.g., “Do not allow promotion.”) and a secondrestriction 2650B (e.g., “Allow a single promotion.”). Selecting thefirst restriction prevents item from being promoted. Selecting thesecond restriction allows the item to be promoted a single time.Attempts to re-promote the item will be blocked. For example, in aspecific implementation, if an item is not permitted to be promoted, apromotion link will not be displayed next to the item. In anotherspecific implementation, if an item is not permitted to be promoted, apromotion link may be displayed next to the item, but upon the linkbeing clicked, an error message may popup informing the user that theitem is not allowed to be promoted.

In a specific implementation, promotion restrictions on an item can bealtered after the item has been published. For example, an item authormay post an item with the restriction that it is not to be promoted.After the item has been published on a newsfeed, the item author maychange their mind and desire that the item be able to be promoted toanother newsfeed. In this specific implementation, the tool allows theitem author, another authorized user (e.g., administrator), or both tochange the promotion restriction. After the promotion restriction ischanged, the item may be published to another newsfeed.

The promotion restrictions that are listed in drop down list 2635 areprovided merely an example. There can be other restrictions options. Forexample, a restriction option may allow the item to be re-promoted Pnumber of times where P is a variable having a value provided by theitem author. Another restriction option may allow the item author tospecify one or more users who are allowed to promote the item. Anotherrestriction option may allow the item author to specify one or moreusers who should not be allowed to promote the item. Another restrictionoption may allow the item author to specify one or more groups whoshould be allowed to promote the item. Another restriction option mayallow the item author to specify one or more groups who should not beallowed to promote the item.

FIG. 27 shows a Web page 2705 of another specific implementation of thepromotion tool. Web page 2705 includes a layout and elements similar tothose shown in FIG. 17 and described in the discussion accompanying FIG.17. For example, the Web page includes a newsfeed 2710 for a first user2712. The newsfeed includes items 2715A-2715F. Item promotion controls2720A-2720D are next to items 2715C-2715F, respectively. Promotioncontrols, however, are not next to top-level items such as items 2715Aand 2715B.

In this specific implementation, the tool allows only the nested itemsto be promoted such as items 2715C-2715E. Items at the top level (e.g.,items 2715A and 2715B) are not allowed to be promoted. So, there are nopromotion controls associated with the top-level items. That is, asshown in FIG. 27, no promotion controls for the top-level items arevisible. In this specific implementation, promotion controls do notexist for the top-level items.

Applicants have recognized in some cases that as the comment trailstarts building the comments themselves may become more important thanthe initial post. It may then become desirable to separate out a commentand promote it to being its own individual post so that it can have acomment trail as well. Not displaying a promotion control with the toplevel items (e.g., items 2715A and 2715B) helps to reduce screen clutterand conserve screen real estate.

Thus, in a specific implementation, a method for fragmenting a newsfeedincludes publishing first and second items on a newsfeed. The seconditem is a comment in response to the first item. That is, the seconditem is published after the first item. The first item is publishedbefore the second item. The second item may be below the first item. Thesecond item may be indented or offset to the right-hand side withrespect to the first item. The method further includes displaying apromotion control next to the second item to allow the second item to bepromoted, and not displaying a promotion control next to the first itemto prevent the first item from being promoted.

The Web pages shown in the Figures are provided merely as a sampleimplementation. It should be appreciated that the tool is not limited tothe specific GUI controls, widgets, objects, elements, containers,icons, windows, views, navigation, help text, and layouts shown in theWeb pages. Various specific implementations may include GUI elementssuch as floating windows, modal windows, palette or utility windows,pop-up boxes, dialog boxes, frames, list boxes, context menus, sliders,spinners, menu bars, combo boxes, scroll bars, tabs, tree views, gridviews, tooltips, balloon help, infobars, links, buttons, icons, and thelike. Aspects (e.g., screens or Web pages) may be modified or altered asappropriate for a particular application, industry, business, or use.

In a specific implementation, the tool allows multiple items (i.e., twoor more items) to be simultaneously promoted. For example, in thisspecific implementation, there can be a check box next to each item onthe newsfeed capable of being promoted. The user can use the check boxto identify two or more items to be promoted to a destination newsfeed.Thus, a user can selectively promote two or more comments of aparticular conversation or threaded discussion. Allowing multiple itemsto be individually selected and promoted at the same time helps to putthe focus on those items that are particularly relevant.

In another specific implementation, the tool allows multiple destinationnewsfeeds (i.e., two or more newsfeeds) to be selected. For example, adestination selection dialog box may include a list of destinations anda corresponding list of checkboxes next to the list of destinations. Theuser can use the check boxes to select two or more destination newsfeedson which the item to be promoted will be published.

In another specific implementation, the tool allows the user to select aportion of an item to promote. The user can use, for example, a pointingdevice (e.g., mouse) to highlight or select the portion of the item topromote.

While one or more implementations have been described by way of exampleand in terms of the specific embodiments, it is to be understood thatone or more implementations are not limited to the disclosedembodiments. To the contrary, it is intended to cover variousmodifications and similar arrangements as would be apparent to thoseskilled in the art. Therefore, the scope of the appended claims shouldbe accorded the broadest interpretation so as to encompass all suchmodifications and similar arrangements.

What is claimed is:
 1. A computer-implemented method for fragmenting anewsfeed stored in a database system associated with an enterprisesocial network comprising: receiving, by the database system, a requestfrom a first user of the enterprise social network, the requestcomprising a selection of an item in the newsfeed of the first userdisplayed on a display of a computer system of the first user, whereinthe selected item comprises content provided by a second user of theenterprise social network; prompting, by the database system, the firstuser to select a destination newsfeed for the item from a list ofdestination newsfeeds, wherein each destination newsfeed in the list isfollowed by the first user and lacks publication of the selected item;receiving, by the database system, a selection of the destinationnewsfeed associated with a third user from the first user, wherein thefirst user is following the second user, and the third user is notfollowing the second user on the enterprise social network; andpublishing, by the database system, the selected item on the destinationnewsfeed displayed on a display of a computer system of the third userof the enterprise social network, wherein the selected item includes avisual identifier indicating that the item has been re-published fromthe first user and wherein the visual identifier distinguishes betweenitems that the third user is following and items that the third user isnot following but have been published in response to a request topublish on the destination newsfeed by the first user.
 2. The method ofclaim 1 comprising: receiving a setting for a permission option from thefirst user for the selected item; and upon publishing the selected itemon the selected destination newsfeed, based on the setting, notnotifying the second user that the selected item has been published onthe selected destination newsfeed.
 3. The method of claim 1 comprising:receiving a setting for a permission option from the first user for theselected item; and upon publishing the selected item on the selecteddestination newsfeed, based on the setting, notifying the second userthat the selected item has been published on the selected destinationnewsfeed.
 4. The method of claim 1 comprising: maintaining on thenewsfeed a threaded discussion comprising an initial post and the item,wherein the item comprises a comment made in response to the initialpost.
 5. The method of claim 1 comprising: receiving from the first useran identification of at least one user of the enterprise social networkwho should be permitted to view comments that are made in response tothe selected item published on the selected destination newsfeed.
 6. Themethod of claim 1 comprising: blocking the second user from viewingcomments that are made in response to the selected item published on theselected destination newsfeed because the selected destination newsfeedis for a group of the enterprise social network of which the second useris not a member.
 7. The method of claim 1 comprising: after thepublishing the selected item on the selected destination newsfeed,determining that a number of times that the selected item can bereposted has reached a threshold value; and blocking the selected itemfrom being published on another destination newsfeed based on thedetermination.
 8. The method of claim 1 wherein the item is a first itempublished on the newsfeed of the first user, and the method comprises:publishing a second item on the newsfeed of the first user, the seconditem comprising content from another user of the enterprise socialnetwork; receiving an indication from the other user that the seconditem should not be reposted; and preventing the second item from beingpublished on another destination newsfeed based on the indication. 9.The method of claim 1 wherein the selected item comprises a firstcomment and a second comment, and the publishing the selected item onthe selected destination newsfeed comprises: publishing the first andsecond comments on the selected destination newsfeed.
 10. The method ofclaim 1 comprising: seeking from the first user a reason for the itemhaving been selected; storing the reason; and publishing the reason onthe selected destination newsfeed.
 11. A non-transitory machine-readablemedium carrying one or more sequences of instructions, whichinstructions, when executed by one or more processors, cause the one ormore processors to: receive, by the database system, a request from afirst user of the enterprise social network, the request comprising aselection of an item in the newsfeed of the first user displayed on adisplay of a computer system of the first user, wherein the selecteditem comprises content provided by a second user of the enterprisesocial network; prompt, by the database system, the first user to selecta destination newsfeed for the item from a list of destinationnewsfeeds, wherein each destination newsfeed in the list is followed bythe first user and lacks publication of the selected item; receive, bythe database system, a selection of the destination newsfeed associatedwith a third user from the first user, wherein the first user isfollowing the second user, and the third user is not following thesecond user on the enterprise social network; and publish, by thedatabase system, the selected item on the destination newsfeed displayedon a display of a computer system of the third user of the enterprisesocial network, wherein the selected item includes a visual identifierindicating that the item has been re-published from the first user andwherein the visual identifier distinguishes between items that the thirduser is following and items that the third user is not following buthave been published in response to a request to publish on thedestination newsfeed by the first user.
 12. The machine-readable mediumof claim 11, wherein the instructions further cause the one or moreprocessors to: receive a setting for a permission option from the firstuser for the selected item; and upon publishing the selected item on theselected destination newsfeed, based on the setting, not notify thesecond user that the selected item has been published on the selecteddestination newsfeed.
 13. The machine-readable medium of claim 11wherein the instructions further cause the one or more processors to:receive a setting for a permission option from the first user for theselected item; and upon publishing the selected item on the selecteddestination newsfeed, based on the setting, notify the second user thatthe selected item has been published on the selected destinationnewsfeed.
 14. The machine-readable medium of claim 11 wherein theinstructions further cause the one or more processors to: block thesecond user from viewing comments that are made in response to theselected item published on the selected destination newsfeed because theselected destination newsfeed is for a group on the enterprise socialnetwork that the second user is not a member of.
 15. Themachine-readable medium of claim 11 wherein the item is a first itempublished on the newsfeed of the first user, and wherein theinstructions further cause the one or more processors to: publish asecond item on the newsfeed of the first user, the second itemcomprising content from another user of the enterprise social network;receive an indication from the other user that the second item shouldnot be reposted; and prevent the second item from being published onanother destination newsfeed based on the indication.
 16. An apparatuscomprising: a processor; and one or more stored sequences ofinstructions which, when executed by the processor, cause the processorto carry out the steps of: receiving, by the database system, a requestfrom a first user of the enterprise social network, the requestcomprising a selection of an item in the newsfeed of the first userdisplayed on a display of a computer system of the first user, whereinthe selected item comprises content provided by a second user of theenterprise social network; prompting, by the database system, the firstuser to select a destination newsfeed for the item from a list ofdestination newsfeeds, wherein each destination newsfeed in the list isfollowed by the first user and lacks publication of the selected item;receiving, by the database system, a selection of the destinationnewsfeed associated with a third user from the first user, wherein thefirst user is following the second user, and the third user is notfollowing the second user on the enterprise social network; andpublishing, by the database system, the selected item on the destinationnewsfeed displayed on a display of a computer system of the third userof the enterprise social network, wherein the selected item includes avisual identifier indicating that the item has been re-published fromthe first user and wherein the visual identifier distinguishes betweenitems that the third user is following and items that the third user isnot following but have been published in response to a request topublish on the destination newsfeed by the first user.
 17. The apparatusof claim 16, wherein the instructions, when executed by the processor,further cause the processor to carry out the steps of: receiving asetting for a permission option from the first user for the selecteditem; and upon publishing the selected item on the selected destinationnewsfeed, based on the setting, not notifying the second user that theselected item has been published on the selected destination newsfeed.18. The apparatus of claim 16, wherein the instructions, when executedby the processor, further cause the processor to carry out the steps of:receiving a setting for a permission option from the first user for theselected item; and upon publishing the selected item on the selecteddestination newsfeed, based on the setting, notifying the second userthat the selected item has been published on the selected destinationnewsfeed.
 19. The apparatus of claim 16, wherein the instructions, whenexecuted by the processor, further cause the processor to carry out thesteps of: blocking the second user from viewing comments that are madein response to the selected item published on the selected destinationnewsfeed because the selected destination newsfeed is for a group of theenterprise social network of which the second user is not a member. 20.The apparatus of claim 16 wherein the item is a first item published onthe newsfeed of the first user, and the instructions, when executed bythe processor, further cause the processor to carry out the steps of:publishing a second item on the newsfeed of the first user, the seconditem comprising content from another user of the enterprise socialnetwork; receiving an indication from the other user that the seconditem should not be reposted; and preventing the second item from beingpublished on another destination newsfeed based on the indication.